aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@intel.com>2014-02-18 04:40:36 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-04-09 04:55:41 -0400
commit2beb6dab2d799ee8934cb0801845e551ad8c70f2 (patch)
tree58261561098a2bc3aaf747041382324119b00128 /include/net
parentcb2d956dd329caa11b5ece454dc52253aa038e73 (diff)
cfg80211/mac80211: refactor cfg80211_chandef_dfs_required()
Some interface types don't require DFS (such as STATION, P2P_CLIENT etc). In order to centralize these decisions, make cfg80211_chandef_dfs_required() take the iftype into consideration. Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/cfg80211.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 4653e9f75d0d..92a65c331cf4 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -446,10 +446,13 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,
446 * cfg80211_chandef_dfs_required - checks if radar detection is required 446 * cfg80211_chandef_dfs_required - checks if radar detection is required
447 * @wiphy: the wiphy to validate against 447 * @wiphy: the wiphy to validate against
448 * @chandef: the channel definition to check 448 * @chandef: the channel definition to check
449 * Return: 1 if radar detection is required, 0 if it is not, < 0 on error 449 * @iftype: the interface type as specified in &enum nl80211_iftype
450 * Returns:
451 * 1 if radar detection is required, 0 if it is not, < 0 on error
450 */ 452 */
451int cfg80211_chandef_dfs_required(struct wiphy *wiphy, 453int cfg80211_chandef_dfs_required(struct wiphy *wiphy,
452 const struct cfg80211_chan_def *chandef); 454 const struct cfg80211_chan_def *chandef,
455 enum nl80211_iftype);
453 456
454/** 457/**
455 * ieee80211_chandef_rate_flags - returns rate flags for a channel 458 * ieee80211_chandef_rate_flags - returns rate flags for a channel