aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-12-04 09:07:34 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-01-03 07:01:28 -0500
commitfe7ef5e9ba0c60bab01390493a4c6790f7b093af (patch)
tree899add2d99d37b272a89c5c84eb4e1d9ba22781b /include/net
parent6913b49a5071064f49f7a74b432286fa735f7612 (diff)
regulatory: remove handling of channel bandwidth
The channel bandwidth handling isn't really quite right, it assumes that a 40 MHz channel is really two 20 MHz channels, which isn't strictly true. This is the way the regulatory database handling is defined right now though so remove the logic to handle other channel widths. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/cfg80211.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 8e6a6b73b9c9..c222e5fbf53a 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -2938,10 +2938,6 @@ extern void wiphy_apply_custom_regulatory(
2938 * freq_reg_info - get regulatory information for the given frequency 2938 * freq_reg_info - get regulatory information for the given frequency
2939 * @wiphy: the wiphy for which we want to process this rule for 2939 * @wiphy: the wiphy for which we want to process this rule for
2940 * @center_freq: Frequency in KHz for which we want regulatory information for 2940 * @center_freq: Frequency in KHz for which we want regulatory information for
2941 * @desired_bw_khz: the desired max bandwidth you want to use per
2942 * channel. Note that this is still 20 MHz if you want to use HT40
2943 * as HT40 makes use of two channels for its 40 MHz width bandwidth.
2944 * If set to 0 we'll assume you want the standard 20 MHz.
2945 * @reg_rule: the regulatory rule which we have for this frequency 2941 * @reg_rule: the regulatory rule which we have for this frequency
2946 * 2942 *
2947 * Use this function to get the regulatory rule for a specific frequency on 2943 * Use this function to get the regulatory rule for a specific frequency on
@@ -2956,9 +2952,7 @@ extern void wiphy_apply_custom_regulatory(
2956 * freq_in_rule_band() for our current definition of a band -- this is purely 2952 * freq_in_rule_band() for our current definition of a band -- this is purely
2957 * subjective and right now its 802.11 specific. 2953 * subjective and right now its 802.11 specific.
2958 */ 2954 */
2959extern int freq_reg_info(struct wiphy *wiphy, 2955extern int freq_reg_info(struct wiphy *wiphy, u32 center_freq,
2960 u32 center_freq,
2961 u32 desired_bw_khz,
2962 const struct ieee80211_reg_rule **reg_rule); 2956 const struct ieee80211_reg_rule **reg_rule);
2963 2957
2964/* 2958/*