summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2017-01-30 10:57:01 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2017-01-30 10:57:01 +0000
commit7293c41e18f581e50d7d0f54faf56424d5255d09 (patch)
treea365d12c3b85101b9f3e0fde6ed89efee1fd020e
parent3fe9e025cb9425a1894d7f2352dd390cd003e985 (diff)
Stop athn(4) 11n hostap from applying HT protection to non-11n clients.
The driver was checking the wrong flag by mistake. ok phessler@ mpi@
-rw-r--r--sys/dev/ic/ar5008.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5008.c b/sys/dev/ic/ar5008.c
index b66e563850f..14c8182ada7 100644
--- a/sys/dev/ic/ar5008.c
+++ b/sys/dev/ic/ar5008.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5008.c,v 1.40 2017/01/30 09:42:14 stsp Exp $ */
+/* $OpenBSD: ar5008.c,v 1.41 2017/01/30 10:57:00 stsp Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -1511,7 +1511,7 @@ ar5008_tx(struct athn_softc *sc, struct mbuf *m, struct ieee80211_node *ni,
ds->ds_ctl0 |= AR_TXC0_RTS_ENABLE;
} else if (((ic->ic_flags & IEEE80211_F_USEPROT) &&
athn_rates[ridx[0]].phy == IEEE80211_T_OFDM) ||
- ((ic->ic_flags & IEEE80211_F_HTON) &&
+ ((ni->ni_flags & IEEE80211_NODE_HT) &&
htprot != IEEE80211_HTPROT_NONE)) {
if (ic->ic_protmode == IEEE80211_PROT_RTSCTS)
ds->ds_ctl0 |= AR_TXC0_RTS_ENABLE;