]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix BSS double-unlinking (continued)
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Mon, 28 Mar 2011 11:32:32 +0000 (14:32 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Mar 2011 19:42:02 +0000 (15:42 -0400)
commit887016ffe2944074fb6e3480578320b72fed3e03
treeda48e2e10050b2e535b908119bf60fe86b17b1e4
parent786edffd85770f6e262596aa042f57ada170a99d
cfg80211: fix BSS double-unlinking (continued)

This patch adds to the fix "fix BSS double-unlinking"
(commit b635d176c1754e8394807fab394b3d989e9aa63f) by Johannes Berg.

It turns out, that the double-unlinking scenario can also occur if expired
BSS elements are removed whilst an interface is performing association.

To work around that, replace list_del with list_del_init also in the
"cfg80211_bss_expire" function, so that the check for whether the BSS still is
in the list works correctly in cfg80211_unlink_bss.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/scan.c