aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/scan.c')
-rw-r--r--net/wireless/scan.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index 31119e32e092..afde7e5f0010 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -861,6 +861,18 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy,
861} 861}
862EXPORT_SYMBOL(cfg80211_inform_bss_frame); 862EXPORT_SYMBOL(cfg80211_inform_bss_frame);
863 863
864void cfg80211_ref_bss(struct cfg80211_bss *pub)
865{
866 struct cfg80211_internal_bss *bss;
867
868 if (!pub)
869 return;
870
871 bss = container_of(pub, struct cfg80211_internal_bss, pub);
872 kref_get(&bss->ref);
873}
874EXPORT_SYMBOL(cfg80211_ref_bss);
875
864void cfg80211_put_bss(struct cfg80211_bss *pub) 876void cfg80211_put_bss(struct cfg80211_bss *pub)
865{ 877{
866 struct cfg80211_internal_bss *bss; 878 struct cfg80211_internal_bss *bss;