]> 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)
commitcaa238650fcb4fb2e4484dc5b26f47694966e118
tree65b2cf23b80532c9ec27a92972d4ef14c1f87299
parenta3eeb14a9e831a7178a8e529a7f888831b79c674
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