summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_proto.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-03-10 06:18:03 +0000
committersam <sam@FreeBSD.org>2006-03-10 06:18:03 +0000
commitb1c2c5a706ed9562e4dbb9ba7aa1cdef0e642123 (patch)
treecce1b63d59fe1d73e85cfa71ca0d5cb951585849 /sys/net80211/ieee80211_proto.c
parent651e183fe9a0b9c8326b97c4842117fcb46fa3a3 (diff)
downloadFreeBSD-src-b1c2c5a706ed9562e4dbb9ba7aa1cdef0e642123.zip
FreeBSD-src-b1c2c5a706ed9562e4dbb9ba7aa1cdef0e642123.tar.gz
fix switching between agressive and non-agressive wmm modes
Obtained from: atheros MFC after: 3 days
Diffstat (limited to 'sys/net80211/ieee80211_proto.c')
-rw-r--r--sys/net80211/ieee80211_proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c
index 0e9b581..16d22d3 100644
--- a/sys/net80211/ieee80211_proto.c
+++ b/sys/net80211/ieee80211_proto.c
@@ -739,7 +739,7 @@ ieee80211_wme_updateparams_locked(struct ieee80211com *ic)
* legacy/non-QoS traffic.
*/
if ((ic->ic_opmode == IEEE80211_M_HOSTAP &&
- (wme->wme_flags & WME_F_AGGRMODE) == 0) ||
+ (wme->wme_flags & WME_F_AGGRMODE) != 0) ||
(ic->ic_opmode == IEEE80211_M_STA &&
(ic->ic_bss->ni_flags & IEEE80211_NODE_QOS) == 0) ||
(ic->ic_flags & IEEE80211_F_WME) == 0) {
@@ -768,7 +768,7 @@ ieee80211_wme_updateparams_locked(struct ieee80211com *ic)
}
if (ic->ic_opmode == IEEE80211_M_HOSTAP &&
- ic->ic_sta_assoc < 2 && (wme->wme_flags & WME_F_AGGRMODE) == 0) {
+ ic->ic_sta_assoc < 2 && (wme->wme_flags & WME_F_AGGRMODE) != 0) {
static const u_int8_t logCwMin[IEEE80211_MODE_MAX] = {
3, /* IEEE80211_MODE_AUTO */
3, /* IEEE80211_MODE_11A */
OpenPOWER on IntegriCloud