aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-21 02:00:00 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-21 02:00:00 +0100
commit558a012aaf6cffb42f57ec73da98e5c647d4ae22 (patch)
treea2d040de965eb8595f6d644de9d5aead6f197d1f /net/wireless
parent109bdfb7ace9c9a34960736c39bec3b18516f382 (diff)
downloadkernel_samsung_smdk4412-558a012aaf6cffb42f57ec73da98e5c647d4ae22.zip
kernel_samsung_smdk4412-558a012aaf6cffb42f57ec73da98e5c647d4ae22.tar.gz
kernel_samsung_smdk4412-558a012aaf6cffb42f57ec73da98e5c647d4ae22.tar.bz2
net/wireless: add cfg80211_ref_bss() from 3.4 kernel
mac80211 needs this function. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'net/wireless')
-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 16fc437..17fc3b2 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -723,6 +723,18 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy,
}
EXPORT_SYMBOL(cfg80211_inform_bss_frame);
+void cfg80211_ref_bss(struct cfg80211_bss *pub)
+{
+ struct cfg80211_internal_bss *bss;
+
+ if (!pub)
+ return;
+
+ bss = container_of(pub, struct cfg80211_internal_bss, pub);
+ kref_get(&bss->ref);
+}
+EXPORT_SYMBOL(cfg80211_ref_bss);
+
void cfg80211_put_bss(struct cfg80211_bss *pub)
{
struct cfg80211_internal_bss *bss;