diff options
Diffstat (limited to 'net/wireless/scan.c')
-rw-r--r-- | net/wireless/scan.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index ec148f68a62b..aacccc9ab6ca 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
@@ -432,6 +432,27 @@ void cfg80211_put_bss(struct cfg80211_bss *pub) | |||
432 | } | 432 | } |
433 | EXPORT_SYMBOL(cfg80211_put_bss); | 433 | EXPORT_SYMBOL(cfg80211_put_bss); |
434 | 434 | ||
435 | void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) | ||
436 | { | ||
437 | struct cfg80211_registered_device *dev = wiphy_to_dev(wiphy); | ||
438 | struct cfg80211_internal_bss *bss; | ||
439 | |||
440 | if (WARN_ON(!pub)) | ||
441 | return; | ||
442 | |||
443 | bss = container_of(pub, struct cfg80211_internal_bss, pub); | ||
444 | |||
445 | spin_lock_bh(&dev->bss_lock); | ||
446 | |||
447 | list_del(&bss->list); | ||
448 | rb_erase(&bss->rbn, &dev->bss_tree); | ||
449 | |||
450 | spin_unlock_bh(&dev->bss_lock); | ||
451 | |||
452 | kref_put(&bss->ref, bss_release); | ||
453 | } | ||
454 | EXPORT_SYMBOL(cfg80211_unlink_bss); | ||
455 | |||
435 | #ifdef CONFIG_WIRELESS_EXT | 456 | #ifdef CONFIG_WIRELESS_EXT |
436 | int cfg80211_wext_siwscan(struct net_device *dev, | 457 | int cfg80211_wext_siwscan(struct net_device *dev, |
437 | struct iw_request_info *info, | 458 | struct iw_request_info *info, |