diff options
-rw-r--r-- | net/wireless/scan.c | 4 | ||||
-rw-r--r-- | net/wireless/sme.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index dd01b58fa78c..ae8c186b50d6 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
@@ -523,6 +523,7 @@ static int cmp_bss(struct cfg80211_bss *a, | |||
523 | } | 523 | } |
524 | } | 524 | } |
525 | 525 | ||
526 | /* Returned bss is reference counted and must be cleaned up appropriately. */ | ||
526 | struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy, | 527 | struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy, |
527 | struct ieee80211_channel *channel, | 528 | struct ieee80211_channel *channel, |
528 | const u8 *bssid, | 529 | const u8 *bssid, |
@@ -678,6 +679,7 @@ static bool cfg80211_combine_bsses(struct cfg80211_registered_device *dev, | |||
678 | return true; | 679 | return true; |
679 | } | 680 | } |
680 | 681 | ||
682 | /* Returned bss is reference counted and must be cleaned up appropriately. */ | ||
681 | static struct cfg80211_internal_bss * | 683 | static struct cfg80211_internal_bss * |
682 | cfg80211_bss_update(struct cfg80211_registered_device *dev, | 684 | cfg80211_bss_update(struct cfg80211_registered_device *dev, |
683 | struct cfg80211_internal_bss *tmp) | 685 | struct cfg80211_internal_bss *tmp) |
@@ -866,6 +868,7 @@ cfg80211_get_bss_channel(struct wiphy *wiphy, const u8 *ie, size_t ielen, | |||
866 | return channel; | 868 | return channel; |
867 | } | 869 | } |
868 | 870 | ||
871 | /* Returned bss is reference counted and must be cleaned up appropriately. */ | ||
869 | struct cfg80211_bss* | 872 | struct cfg80211_bss* |
870 | cfg80211_inform_bss(struct wiphy *wiphy, | 873 | cfg80211_inform_bss(struct wiphy *wiphy, |
871 | struct ieee80211_channel *channel, | 874 | struct ieee80211_channel *channel, |
@@ -923,6 +926,7 @@ cfg80211_inform_bss(struct wiphy *wiphy, | |||
923 | } | 926 | } |
924 | EXPORT_SYMBOL(cfg80211_inform_bss); | 927 | EXPORT_SYMBOL(cfg80211_inform_bss); |
925 | 928 | ||
929 | /* Returned bss is reference counted and must be cleaned up appropriately. */ | ||
926 | struct cfg80211_bss * | 930 | struct cfg80211_bss * |
927 | cfg80211_inform_bss_frame(struct wiphy *wiphy, | 931 | cfg80211_inform_bss_frame(struct wiphy *wiphy, |
928 | struct ieee80211_channel *channel, | 932 | struct ieee80211_channel *channel, |
diff --git a/net/wireless/sme.c b/net/wireless/sme.c index 32dac8cdd2e3..1d3cfb1a3f28 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c | |||
@@ -239,6 +239,7 @@ void cfg80211_conn_work(struct work_struct *work) | |||
239 | rtnl_unlock(); | 239 | rtnl_unlock(); |
240 | } | 240 | } |
241 | 241 | ||
242 | /* Returned bss is reference counted and must be cleaned up appropriately. */ | ||
242 | static struct cfg80211_bss *cfg80211_get_conn_bss(struct wireless_dev *wdev) | 243 | static struct cfg80211_bss *cfg80211_get_conn_bss(struct wireless_dev *wdev) |
243 | { | 244 | { |
244 | struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); | 245 | struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); |
@@ -699,6 +700,7 @@ void cfg80211_connect_result(struct net_device *dev, const u8 *bssid, | |||
699 | } | 700 | } |
700 | EXPORT_SYMBOL(cfg80211_connect_result); | 701 | EXPORT_SYMBOL(cfg80211_connect_result); |
701 | 702 | ||
703 | /* Consumes bss object one way or another */ | ||
702 | void __cfg80211_roamed(struct wireless_dev *wdev, | 704 | void __cfg80211_roamed(struct wireless_dev *wdev, |
703 | struct cfg80211_bss *bss, | 705 | struct cfg80211_bss *bss, |
704 | const u8 *req_ie, size_t req_ie_len, | 706 | const u8 *req_ie, size_t req_ie_len, |
@@ -775,6 +777,7 @@ void cfg80211_roamed(struct net_device *dev, | |||
775 | } | 777 | } |
776 | EXPORT_SYMBOL(cfg80211_roamed); | 778 | EXPORT_SYMBOL(cfg80211_roamed); |
777 | 779 | ||
780 | /* Consumes bss object one way or another */ | ||
778 | void cfg80211_roamed_bss(struct net_device *dev, | 781 | void cfg80211_roamed_bss(struct net_device *dev, |
779 | struct cfg80211_bss *bss, const u8 *req_ie, | 782 | struct cfg80211_bss *bss, const u8 *req_ie, |
780 | size_t req_ie_len, const u8 *resp_ie, | 783 | size_t req_ie_len, const u8 *resp_ie, |