diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2009-02-04 12:58:48 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-11 16:44:23 (GMT) |
commit | 7a9470806053f765ecf7f3932acb4c95c204ad4b (patch) | |
tree | 0e0e2110f221babd6fbdb289f3056436fca101b1 /net/mac80211/scan.c | |
parent | 029bc43270e770e0d57d67dc431fe711c58e74f5 (diff) | |
download | linux-fsl-qoriq-7a9470806053f765ecf7f3932acb4c95c204ad4b.tar.xz |
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 282e6a0..50719ea 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c @@ -327,6 +327,19 @@ ieee80211_bss_info_update(struct ieee80211_local *local, return bss; } +void ieee80211_rx_bss_remove(struct ieee80211_sub_if_data *sdata, u8 *bssid, + int freq, u8 *ssid, u8 ssid_len) +{ + struct ieee80211_bss *bss; + struct ieee80211_local *local = sdata->local; + + bss = ieee80211_rx_bss_get(local, bssid, freq, ssid, ssid_len); + if (bss) { + atomic_dec(&bss->users); + ieee80211_rx_bss_put(local, bss); + } +} + ieee80211_rx_result ieee80211_scan_rx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, struct ieee80211_rx_status *rx_status) |