cfg80211: keep track of current_bss for userspace SME
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 29 Jul 2009 09:23:49 +0000 (11:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:43:24 +0000 (16:43 -0400)
commitdf7fc0f9735085bb617fff774bfd71465edb448c
tree2b47f3823a8aee6c13e86aa3dedc06bda9ebae38
parent97af743207466ff8b477e14bfb7af0ba2c93375b
cfg80211: keep track of current_bss for userspace SME

When a userspace SME is active, we're currently not
keeping track of the BSS properly for reporting the
current link and for internal use. Additionally, it
looks like there is a possible BSS leak in that the
BSS never gets removed from auth_bsses[]. To fix it,
pass the BSS struct to __cfg80211_connect_result in
this case.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/core.c
net/wireless/core.h
net/wireless/mlme.c
net/wireless/sme.c