diff options
author | Ilan Peer <ilan.peer@intel.com> | 2014-01-09 04:37:23 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-01-09 08:24:24 -0500 |
commit | bdfbec2d2d240e9c528caae9c743801629b60166 (patch) | |
tree | d35ed71d3af26f7bbc681da4cbfcee99f8685476 /include/net/cfg80211.h | |
parent | 685328b296acc810541d2532957912690273c64a (diff) |
cfg80211: Add a function to get the number of supported channels
Add a utility function to get the number of channels supported by
the device, and update the places in the code that need this data.
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
[replace another occurrence in libertas, fix kernel-doc, fix bugs]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 56c597793d6d..b1f84b05c67e 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -4640,6 +4640,14 @@ void cfg80211_report_wowlan_wakeup(struct wireless_dev *wdev, | |||
4640 | */ | 4640 | */ |
4641 | void cfg80211_crit_proto_stopped(struct wireless_dev *wdev, gfp_t gfp); | 4641 | void cfg80211_crit_proto_stopped(struct wireless_dev *wdev, gfp_t gfp); |
4642 | 4642 | ||
4643 | /** | ||
4644 | * ieee80211_get_num_supported_channels - get number of channels device has | ||
4645 | * @wiphy: the wiphy | ||
4646 | * | ||
4647 | * Return: the number of channels supported by the device. | ||
4648 | */ | ||
4649 | unsigned int ieee80211_get_num_supported_channels(struct wiphy *wiphy); | ||
4650 | |||
4643 | /* Logging, debugging and troubleshooting/diagnostic helpers. */ | 4651 | /* Logging, debugging and troubleshooting/diagnostic helpers. */ |
4644 | 4652 | ||
4645 | /* wiphy_printk helpers, similar to dev_printk */ | 4653 | /* wiphy_printk helpers, similar to dev_printk */ |