]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita84cec10c9473011876623b8140431933f1dc994
tree65b2cf23b80532c9ec27a92972d4ef14c1f87299
parentbf99fbe555038853eb55e1bf48d92563cf05e8aa
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