aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorAndriy Voskoboinyk <avos@FreeBSD.org>2019-02-03 02:32:13 +0000
committerAndriy Voskoboinyk <avos@FreeBSD.org>2019-02-03 02:32:13 +0000
commit2ce6d2b58cbd80fd2dcf7826664c41ae13ee862f (patch)
treea8bdbaef07b93a0aeee0821b80cd2b8a3d9f1dd4 /sys/net80211
parent511e2766f189af55be9ea4a175d1a5898bed1a62 (diff)
downloadsrc-2ce6d2b58cbd80fd2dcf7826664c41ae13ee862f.tar.gz
src-2ce6d2b58cbd80fd2dcf7826664c41ae13ee862f.zip
net80211(4): fix rate check when 'roaming' ifconfig(8) option is set to 'auto'
Do not try to clear 'basic rate' bit from roamRate; it cannot be here and, actually, this operation clears 'MCS rate' bit instead, breaking comparison for 11n / 11ac modes. Tested with RTL8188CUS, HOSTAP mode + RTL8821AU, STA mode. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=343697
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_scan_sta.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_scan_sta.c b/sys/net80211/ieee80211_scan_sta.c
index 901a5a5e8b4a..ecfdcd03c7c4 100644
--- a/sys/net80211/ieee80211_scan_sta.c
+++ b/sys/net80211/ieee80211_scan_sta.c
@@ -1362,7 +1362,6 @@ sta_roam_check(struct ieee80211_scan_state *ss, struct ieee80211vap *vap)
curRssi = ic->ic_node_getrssi(ni);
if (ucastRate == IEEE80211_FIXED_RATE_NONE) {
curRate = ni->ni_txrate;
- roamRate &= IEEE80211_RATE_VAL;
IEEE80211_DPRINTF(vap, IEEE80211_MSG_ROAM,
"%s: currssi %d currate %u roamrssi %d roamrate %u\n",
__func__, curRssi, curRate, roamRssi, roamRate);