summaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJohannes Berg2012-01-20 13:55:26 +0100
committerJohn W. Linville2012-02-06 20:50:37 +0100
commit4c0c0b75e0c35ddb8f61c06bcbffede63ab4f4a2 (patch)
tree5d3ee488424ac02ef06330ebff3e5de6e5058941 /include/net/cfg80211.h
parentcfg80211: stop tracking authenticated state (diff)
downloadkernel-qcow2-linux-4c0c0b75e0c35ddb8f61c06bcbffede63ab4f4a2.tar.gz
kernel-qcow2-linux-4c0c0b75e0c35ddb8f61c06bcbffede63ab4f4a2.tar.xz
kernel-qcow2-linux-4c0c0b75e0c35ddb8f61c06bcbffede63ab4f4a2.zip
cfg80211: export cfg80211_ref_bss
This is needed by mac80211 to keep a reference to a BSS alive for the auth process. Remove the old version of cfg80211_ref_bss() since it's not actually used. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 6cfecb02a34b..229edc526cf5 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -2719,6 +2719,20 @@ struct cfg80211_bss *cfg80211_get_mesh(struct wiphy *wiphy,
struct ieee80211_channel *channel,
const u8 *meshid, size_t meshidlen,
const u8 *meshcfg);
+/**
+ * cfg80211_ref_bss - reference BSS struct
+ * @bss: the BSS struct to reference
+ *
+ * Increments the refcount of the given BSS struct.
+ */
+void cfg80211_ref_bss(struct cfg80211_bss *bss);
+
+/**
+ * cfg80211_put_bss - unref BSS struct
+ * @bss: the BSS struct
+ *
+ * Decrements the refcount of the given BSS struct.
+ */
void cfg80211_put_bss(struct cfg80211_bss *bss);
/**