mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
95de817b90
commit
4c0c0b75e0
3 changed files with 26 additions and 5 deletions
|
|
@ -144,11 +144,6 @@ static inline struct cfg80211_internal_bss *bss_from_pub(struct cfg80211_bss *pu
|
|||
return container_of(pub, struct cfg80211_internal_bss, pub);
|
||||
}
|
||||
|
||||
static inline void cfg80211_ref_bss(struct cfg80211_internal_bss *bss)
|
||||
{
|
||||
kref_get(&bss->ref);
|
||||
}
|
||||
|
||||
static inline void cfg80211_hold_bss(struct cfg80211_internal_bss *bss)
|
||||
{
|
||||
atomic_inc(&bss->hold);
|
||||
|
|
|
|||
|
|
@ -861,6 +861,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue