diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-01-20 07:55:26 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:50:37 -0500 |
commit | 4c0c0b75e0c35ddb8f61c06bcbffede63ab4f4a2 (patch) | |
tree | 5d3ee488424ac02ef06330ebff3e5de6e5058941 /net/wireless/scan.c | |
parent | 95de817b9034d50860319f6033ec85d25024694c (diff) |
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 'net/wireless/scan.c')
-rw-r--r-- | net/wireless/scan.c | 12 |
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 | } |
862 | EXPORT_SYMBOL(cfg80211_inform_bss_frame); | 862 | EXPORT_SYMBOL(cfg80211_inform_bss_frame); |
863 | 863 | ||
864 | void 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 | } | ||
874 | EXPORT_SYMBOL(cfg80211_ref_bss); | ||
875 | |||
864 | void cfg80211_put_bss(struct cfg80211_bss *pub) | 876 | void cfg80211_put_bss(struct cfg80211_bss *pub) |
865 | { | 877 | { |
866 | struct cfg80211_internal_bss *bss; | 878 | struct cfg80211_internal_bss *bss; |