diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-01-31 19:49:58 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-02-11 12:44:52 -0500 |
commit | 5b112d3d098c97b867cc580f590395cd1e72f18c (patch) | |
tree | 75e3a6434adaab876ae54ea35d7ceebebbf3ca4a /include/net/cfg80211.h | |
parent | bba87ffe606b7fc5fba73d1c0c5ac1eacd2cebe8 (diff) |
cfg80211: pass wiphy to cfg80211_ref_bss/put_bss
This prepares for using the spinlock instead of krefs
which is needed in the next patch to track the refs
of combined BSSes correctly.
Acked-by: Bing Zhao <bzhao@marvell.com> [mwifiex]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 3ec70e1681d3..691b347545cb 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -3166,19 +3166,21 @@ cfg80211_get_ibss(struct wiphy *wiphy, | |||
3166 | 3166 | ||
3167 | /** | 3167 | /** |
3168 | * cfg80211_ref_bss - reference BSS struct | 3168 | * cfg80211_ref_bss - reference BSS struct |
3169 | * @wiphy: the wiphy this BSS struct belongs to | ||
3169 | * @bss: the BSS struct to reference | 3170 | * @bss: the BSS struct to reference |
3170 | * | 3171 | * |
3171 | * Increments the refcount of the given BSS struct. | 3172 | * Increments the refcount of the given BSS struct. |
3172 | */ | 3173 | */ |
3173 | void cfg80211_ref_bss(struct cfg80211_bss *bss); | 3174 | void cfg80211_ref_bss(struct wiphy *wiphy, struct cfg80211_bss *bss); |
3174 | 3175 | ||
3175 | /** | 3176 | /** |
3176 | * cfg80211_put_bss - unref BSS struct | 3177 | * cfg80211_put_bss - unref BSS struct |
3178 | * @wiphy: the wiphy this BSS struct belongs to | ||
3177 | * @bss: the BSS struct | 3179 | * @bss: the BSS struct |
3178 | * | 3180 | * |
3179 | * Decrements the refcount of the given BSS struct. | 3181 | * Decrements the refcount of the given BSS struct. |
3180 | */ | 3182 | */ |
3181 | void cfg80211_put_bss(struct cfg80211_bss *bss); | 3183 | void cfg80211_put_bss(struct wiphy *wiphy, struct cfg80211_bss *bss); |
3182 | 3184 | ||
3183 | /** | 3185 | /** |
3184 | * cfg80211_unlink_bss - unlink BSS from internal data structures | 3186 | * cfg80211_unlink_bss - unlink BSS from internal data structures |