diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2009-02-04 07:58:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-11 11:44:23 -0500 |
commit | 7a9470806053f765ecf7f3932acb4c95c204ad4b (patch) | |
tree | 0e0e2110f221babd6fbdb289f3056436fca101b1 /net/mac80211/scan.c | |
parent | 029bc43270e770e0d57d67dc431fe711c58e74f5 (diff) |
mac80211: Free current bss information in few places where we don't need it any more
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 282e6a0dec01..50719ea08172 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -327,6 +327,19 @@ ieee80211_bss_info_update(struct ieee80211_local *local, | |||
327 | return bss; | 327 | return bss; |
328 | } | 328 | } |
329 | 329 | ||
330 | void ieee80211_rx_bss_remove(struct ieee80211_sub_if_data *sdata, u8 *bssid, | ||
331 | int freq, u8 *ssid, u8 ssid_len) | ||
332 | { | ||
333 | struct ieee80211_bss *bss; | ||
334 | struct ieee80211_local *local = sdata->local; | ||
335 | |||
336 | bss = ieee80211_rx_bss_get(local, bssid, freq, ssid, ssid_len); | ||
337 | if (bss) { | ||
338 | atomic_dec(&bss->users); | ||
339 | ieee80211_rx_bss_put(local, bss); | ||
340 | } | ||
341 | } | ||
342 | |||
330 | ieee80211_rx_result | 343 | ieee80211_rx_result |
331 | ieee80211_scan_rx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, | 344 | ieee80211_scan_rx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, |
332 | struct ieee80211_rx_status *rx_status) | 345 | struct ieee80211_rx_status *rx_status) |