diff options
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 9e17a83d3432..282d58d52fce 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -70,6 +70,9 @@ enum ieee80211_channel_flags { | |||
70 | IEEE80211_CHAN_NO_FAT_BELOW = 1<<5, | 70 | IEEE80211_CHAN_NO_FAT_BELOW = 1<<5, |
71 | }; | 71 | }; |
72 | 72 | ||
73 | #define IEEE80211_CHAN_NO_HT40 \ | ||
74 | (IEEE80211_CHAN_NO_FAT_ABOVE | IEEE80211_CHAN_NO_FAT_BELOW) | ||
75 | |||
73 | /** | 76 | /** |
74 | * struct ieee80211_channel - channel definition | 77 | * struct ieee80211_channel - channel definition |
75 | * | 78 | * |
@@ -1303,9 +1306,10 @@ extern void wiphy_apply_custom_regulatory( | |||
1303 | * freq_reg_info - get regulatory information for the given frequency | 1306 | * freq_reg_info - get regulatory information for the given frequency |
1304 | * @wiphy: the wiphy for which we want to process this rule for | 1307 | * @wiphy: the wiphy for which we want to process this rule for |
1305 | * @center_freq: Frequency in KHz for which we want regulatory information for | 1308 | * @center_freq: Frequency in KHz for which we want regulatory information for |
1306 | * @bandwidth: the bandwidth requirement you have in KHz, if you do not have one | 1309 | * @desired_bw_khz: the desired max bandwidth you want to use per |
1307 | * you can set this to 0. If this frequency is allowed we then set | 1310 | * channel. Note that this is still 20 MHz if you want to use HT40 |
1308 | * this value to the maximum allowed bandwidth. | 1311 | * as HT40 makes use of two channels for its 40 MHz width bandwidth. |
1312 | * If set to 0 we'll assume you want the standard 20 MHz. | ||
1309 | * @reg_rule: the regulatory rule which we have for this frequency | 1313 | * @reg_rule: the regulatory rule which we have for this frequency |
1310 | * | 1314 | * |
1311 | * Use this function to get the regulatory rule for a specific frequency on | 1315 | * Use this function to get the regulatory rule for a specific frequency on |
@@ -1320,7 +1324,9 @@ extern void wiphy_apply_custom_regulatory( | |||
1320 | * freq_in_rule_band() for our current definition of a band -- this is purely | 1324 | * freq_in_rule_band() for our current definition of a band -- this is purely |
1321 | * subjective and right now its 802.11 specific. | 1325 | * subjective and right now its 802.11 specific. |
1322 | */ | 1326 | */ |
1323 | extern int freq_reg_info(struct wiphy *wiphy, u32 center_freq, u32 *bandwidth, | 1327 | extern int freq_reg_info(struct wiphy *wiphy, |
1328 | u32 center_freq, | ||
1329 | u32 desired_bw_khz, | ||
1324 | const struct ieee80211_reg_rule **reg_rule); | 1330 | const struct ieee80211_reg_rule **reg_rule); |
1325 | 1331 | ||
1326 | /* | 1332 | /* |