summaryrefslogtreecommitdiff
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2014-01-09 11:37:23 +0200
committerJohannes Berg <johannes.berg@intel.com>2014-01-09 14:24:24 +0100
commitbdfbec2d2d240e9c528caae9c743801629b60166 (patch)
treed35ed71d3af26f7bbc681da4cbfcee99f8685476 /include/net/cfg80211.h
parent685328b296acc810541d2532957912690273c64a (diff)
downloadlinux-rpi-bdfbec2d2d240e9c528caae9c743801629b60166.tar.gz
linux-rpi-bdfbec2d2d240e9c528caae9c743801629b60166.tar.bz2
linux-rpi-bdfbec2d2d240e9c528caae9c743801629b60166.zip
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.h8
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,
*/
void cfg80211_crit_proto_stopped(struct wireless_dev *wdev, gfp_t gfp);
+/**
+ * ieee80211_get_num_supported_channels - get number of channels device has
+ * @wiphy: the wiphy
+ *
+ * Return: the number of channels supported by the device.
+ */
+unsigned int ieee80211_get_num_supported_channels(struct wiphy *wiphy);
+
/* Logging, debugging and troubleshooting/diagnostic helpers. */
/* wiphy_printk helpers, similar to dev_printk */