diff options
author | sam <sam@FreeBSD.org> | 2006-01-02 17:16:27 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-01-02 17:16:27 +0000 |
commit | e115c4ac0db37a521601a924f384faecb15c9602 (patch) | |
tree | f281267b045d5178fc71bbdb8fc54263072bb151 /sys/net80211 | |
parent | f48869deccd8e549ef01af18f876abc423257689 (diff) | |
download | FreeBSD-src-e115c4ac0db37a521601a924f384faecb15c9602.zip FreeBSD-src-e115c4ac0db37a521601a924f384faecb15c9602.tar.gz |
enable "aggressive mode" only when operating in ap or station mode; in
particular this fixes use of wme in adhoc demo mode, it wasn't possible
to set the txop limit because the aggressive mode logic would override
Reviewed by: apatti
MFC after: 2 weeks
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 991a6c2..853ea60 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -739,7 +739,7 @@ ieee80211_wme_updateparams_locked(struct ieee80211com *ic) */ if ((ic->ic_opmode == IEEE80211_M_HOSTAP && (wme->wme_flags & WME_F_AGGRMODE) == 0) || - (ic->ic_opmode != IEEE80211_M_HOSTAP && + (ic->ic_opmode == IEEE80211_M_STA && (ic->ic_bss->ni_flags & IEEE80211_NODE_QOS) == 0) || (ic->ic_flags & IEEE80211_F_WME) == 0) { chanp = &wme->wme_chanParams.cap_wmeParams[WME_AC_BE]; |