diff options
author | adrian <adrian@FreeBSD.org> | 2012-02-28 21:43:29 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-02-28 21:43:29 +0000 |
commit | 176868cc041aac1f54ce360fe14b88cfcfba715d (patch) | |
tree | 31d4547b71cb42d6a12ef710aafb4b240ffd8a99 /sys/net80211/ieee80211_sta.c | |
parent | c12af6cbb161cff590b9c64f28fd02772c618fb4 (diff) | |
download | FreeBSD-src-176868cc041aac1f54ce360fe14b88cfcfba715d.zip FreeBSD-src-176868cc041aac1f54ce360fe14b88cfcfba715d.tar.gz |
Only increment is_beacon_bad if we're not scanning.
Otherwise things such as off-channel probe responses and beacons are also
silently discarded and logged against this error counter.
Diffstat (limited to 'sys/net80211/ieee80211_sta.c')
-rw-r--r-- | sys/net80211/ieee80211_sta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_sta.c b/sys/net80211/ieee80211_sta.c index d8a7fe9..0f1af98 100644 --- a/sys/net80211/ieee80211_sta.c +++ b/sys/net80211/ieee80211_sta.c @@ -1306,7 +1306,8 @@ sta_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m0, } /* XXX probe response in sta mode when !scanning? */ if (ieee80211_parse_beacon(ni, m0, &scan) != 0) { - vap->iv_stats.is_beacon_bad++; + if (! (ic->ic_flags & IEEE80211_F_SCAN)) + vap->iv_stats.is_beacon_bad++; return; } /* |