net80211: do not cancel scan when packet is sent.
authoravos <avos@FreeBSD.org>
Fri, 30 Sep 2016 18:43:39 +0000 (18:43 +0000)
committeravos <avos@FreeBSD.org>
Fri, 30 Sep 2016 18:43:39 +0000 (18:43 +0000)
commit728972c57db0795e26383f4278892a2a5f393f26
tree208578c8e027f4d2a85e746992a386fdf62517a8
parentd041ad4cfb3f7b0015631769457e8830ebd8758f
net80211: do not cancel scan when packet is sent.

Restore pre-r300383 behavior when a frame is sent:
- stop scan;
- send frame;
- when beacon arrives and our bit in TIM is not set - restart the scan.

NOTE:
Ideally, this should introduce new interface (ieee80211_pause_anyscan());
however, since ieee80211_cancel_anyscan() is not used by drivers and only
called by ieee80211_start_pkt() the current patch overrides it's behavior
instead.

Tested with Intel 3945BG, STA mode

Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D7979
sys/net80211/ieee80211_scan_sw.c