Fix bmiss notifications, events should be sent when NOT scanning.

MFC after:	3 days
This commit is contained in:
Bernhard Schmidt 2011-10-13 18:17:03 +00:00
parent 23f39c906b
commit a7978bab76
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226346

View File

@ -2929,7 +2929,7 @@ iwn_notif_intr(struct iwn_softc *sc)
* reinitialize the sensitivity state machine.
*/
if (vap->iv_state == IEEE80211_S_RUN &&
(ic->ic_flags & IEEE80211_F_SCAN) != 0) {
(ic->ic_flags & IEEE80211_F_SCAN) == 0) {
if (misses > 5)
(void)iwn_init_sensitivity(sc);
if (misses >= vap->iv_bmissthreshold) {