aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-21 02:00:00 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-07-24 12:28:06 +0200
commitd7602d80b0416275178fb3f980929aa42a459aac (patch)
tree19bf60dc03941cdb797b3200914e348be93225d4
parentd1367828f981db4d42c39cad6b6c967811d31432 (diff)
downloadkernel_samsung_smdk4412-d7602d80b0416275178fb3f980929aa42a459aac.zip
kernel_samsung_smdk4412-d7602d80b0416275178fb3f980929aa42a459aac.tar.gz
kernel_samsung_smdk4412-d7602d80b0416275178fb3f980929aa42a459aac.tar.bz2
net/wireless: add cfg80211_ref_bss() from 3.4 kernel
mac80211 needs this function. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-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;