aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/core.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-07-29 05:23:49 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-04 16:43:24 -0400
commitdf7fc0f9735085bb617fff774bfd71465edb448c (patch)
tree2b47f3823a8aee6c13e86aa3dedc06bda9ebae38 /net/wireless/core.c
parent97af743207466ff8b477e14bfb7af0ba2c93375b (diff)
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>
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r--net/wireless/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index f9fee65dc06a..755cdf1643c9 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -314,7 +314,8 @@ static void cfg80211_process_events(struct wireless_dev *wdev)
314 ev->cr.req_ie, ev->cr.req_ie_len, 314 ev->cr.req_ie, ev->cr.req_ie_len,
315 ev->cr.resp_ie, ev->cr.resp_ie_len, 315 ev->cr.resp_ie, ev->cr.resp_ie_len,
316 ev->cr.status, 316 ev->cr.status,
317 ev->cr.status == WLAN_STATUS_SUCCESS); 317 ev->cr.status == WLAN_STATUS_SUCCESS,
318 NULL);
318 break; 319 break;
319 case EVENT_ROAMED: 320 case EVENT_ROAMED:
320 __cfg80211_roamed(wdev, ev->rm.bssid, 321 __cfg80211_roamed(wdev, ev->rm.bssid,