airo: fix scan after SIOCSIWAP (airo_set_wap)
authorOndrej Zary <linux@rainbow-software.org>
Fri, 16 Oct 2015 19:04:14 +0000 (21:04 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 28 Oct 2015 18:54:39 +0000 (20:54 +0200)
commitdae0412d0caa4948da07fe4ad91352b5b61a70ec
tree65b2cf23b80532c9ec27a92972d4ef14c1f87299
parentf675f93a797a18fc1f82030d56d02286039d0fb3
airo: fix scan after SIOCSIWAP (airo_set_wap)

SIOCSIWAP (airo_set_wap) affects scan: only the AP specified by
SIOCSIWAP is present in scan results.

This makes NetworkManager work for the first time but then unable to
find any other APs.

Clear APList before starting scan and set it back after scan completes
to work-around the problem.

To avoid losing packets during scan, modify disable_MAC() to omit
netif_carrier_off() call when lock == 2.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/airo.c