aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r--net/mac80211/scan.c13
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
330void 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
330ieee80211_rx_result 343ieee80211_rx_result
331ieee80211_scan_rx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, 344ieee80211_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)