summaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorSimon Wunderlich2013-08-28 13:41:28 +0200
committerJohannes Berg2013-09-26 13:27:13 +0200
commit774f073461dbee0decee7524d9b930a98a3dc30c (patch)
treebb91d3e996bcde53b6305d9994804941dad00162 /include/net/cfg80211.h
parentmac80211: do not override fixed_rate_idx in minstrel_ht_update_stats (diff)
downloadkernel-qcow2-linux-774f073461dbee0decee7524d9b930a98a3dc30c.tar.gz
kernel-qcow2-linux-774f073461dbee0decee7524d9b930a98a3dc30c.tar.xz
kernel-qcow2-linux-774f073461dbee0decee7524d9b930a98a3dc30c.zip
cfg80211: export cfg80211_chandef_dfs_required
It will be used later by the IBSS CSA implementation of mac80211. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index cb710913d5c8..45f6bf591104 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -437,6 +437,15 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,
u32 prohibited_flags);
/**
+ * cfg80211_chandef_dfs_required - checks if radar detection is required
+ * @wiphy: the wiphy to validate against
+ * @chandef: the channel definition to check
+ * Return: 1 if radar detection is required, 0 if it is not, < 0 on error
+ */
+int cfg80211_chandef_dfs_required(struct wiphy *wiphy,
+ const struct cfg80211_chan_def *chandef);
+
+/**
* ieee80211_chandef_rate_flags - returns rate flags for a channel
*
* In some channel types, not all rates may be used - for example CCK