diff options
author | Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de> | 2013-08-28 07:41:28 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-09-26 07:27:13 -0400 |
commit | 774f073461dbee0decee7524d9b930a98a3dc30c (patch) | |
tree | bb91d3e996bcde53b6305d9994804941dad00162 /net | |
parent | 37feb7e2fb5eea361495f529f2a150ea3a34dd41 (diff) |
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 'net')
-rw-r--r-- | net/wireless/chan.c | 1 | ||||
-rw-r--r-- | net/wireless/core.h | 9 |
2 files changed, 1 insertions, 9 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index 50f6195c8b70..16f3c3a7b2c1 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c | |||
@@ -328,6 +328,7 @@ int cfg80211_chandef_dfs_required(struct wiphy *wiphy, | |||
328 | return cfg80211_get_chans_dfs_required(wiphy, chandef->center_freq2, | 328 | return cfg80211_get_chans_dfs_required(wiphy, chandef->center_freq2, |
329 | width); | 329 | width); |
330 | } | 330 | } |
331 | EXPORT_SYMBOL(cfg80211_chandef_dfs_required); | ||
331 | 332 | ||
332 | static bool cfg80211_secondary_chans_ok(struct wiphy *wiphy, | 333 | static bool cfg80211_secondary_chans_ok(struct wiphy *wiphy, |
333 | u32 center_freq, u32 bandwidth, | 334 | u32 center_freq, u32 bandwidth, |
diff --git a/net/wireless/core.h b/net/wireless/core.h index 9ad43c619c54..b43efac4efca 100644 --- a/net/wireless/core.h +++ b/net/wireless/core.h | |||
@@ -382,15 +382,6 @@ int cfg80211_can_use_iftype_chan(struct cfg80211_registered_device *rdev, | |||
382 | enum cfg80211_chan_mode chanmode, | 382 | enum cfg80211_chan_mode chanmode, |
383 | u8 radar_detect); | 383 | u8 radar_detect); |
384 | 384 | ||
385 | /** | ||
386 | * cfg80211_chandef_dfs_required - checks if radar detection is required | ||
387 | * @wiphy: the wiphy to validate against | ||
388 | * @chandef: the channel definition to check | ||
389 | * Return: 1 if radar detection is required, 0 if it is not, < 0 on error | ||
390 | */ | ||
391 | int cfg80211_chandef_dfs_required(struct wiphy *wiphy, | ||
392 | const struct cfg80211_chan_def *c); | ||
393 | |||
394 | void cfg80211_set_dfs_state(struct wiphy *wiphy, | 385 | void cfg80211_set_dfs_state(struct wiphy *wiphy, |
395 | const struct cfg80211_chan_def *chandef, | 386 | const struct cfg80211_chan_def *chandef, |
396 | enum nl80211_dfs_state dfs_state); | 387 | enum nl80211_dfs_state dfs_state); |