aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/regulatory.h
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-11-11 16:15:31 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-11-25 14:51:51 -0500
commit2a901468c221e778af52603e006a53d286e81f90 (patch)
treeed3232c3197eef59311d4ba531867e28e436f001 /include/net/regulatory.h
parenta09a85a013523a8b572dc5732b5c30e0785195f3 (diff)
cfg80211: add an option to disable processing country IEs
Certain vendors may want to disable the processing of country IEs so that they can continue using the regulatory domain the driver or user has set. Currently there is no way to stop the core from processing country IEs, so add support to the core to ignore country IE hints. Cc: Mihir Shete <smihir@qti.qualcomm.com> Cc: Henri Bahini <hbahini@qca.qualcomm.com> Cc: Tushnim Bhattacharyya <tushnimb@qca.qualcomm.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/regulatory.h')
-rw-r--r--include/net/regulatory.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/regulatory.h b/include/net/regulatory.h
index b03ddee3341d..92ab80f69efe 100644
--- a/include/net/regulatory.h
+++ b/include/net/regulatory.h
@@ -123,12 +123,17 @@ struct regulatory_request {
123 * derived from the regulatory domain. The regulatory domain used will be 123 * derived from the regulatory domain. The regulatory domain used will be
124 * based on the ISO3166-alpha2 from country IE provided through 124 * based on the ISO3166-alpha2 from country IE provided through
125 * regulatory_hint_country_ie() 125 * regulatory_hint_country_ie()
126 * @REGULATORY_COUNTRY_IE_IGNORE: for devices that have a preference to ignore
127 * all country IE information processed by the regulatory core. This will
128 * override %REGULATORY_COUNTRY_IE_FOLLOW_POWER as all country IEs will
129 * be ignored.
126 */ 130 */
127enum ieee80211_regulatory_flags { 131enum ieee80211_regulatory_flags {
128 REGULATORY_CUSTOM_REG = BIT(0), 132 REGULATORY_CUSTOM_REG = BIT(0),
129 REGULATORY_STRICT_REG = BIT(1), 133 REGULATORY_STRICT_REG = BIT(1),
130 REGULATORY_DISABLE_BEACON_HINTS = BIT(2), 134 REGULATORY_DISABLE_BEACON_HINTS = BIT(2),
131 REGULATORY_COUNTRY_IE_FOLLOW_POWER = BIT(3), 135 REGULATORY_COUNTRY_IE_FOLLOW_POWER = BIT(3),
136 REGULATORY_COUNTRY_IE_IGNORE = BIT(4),
132}; 137};
133 138
134struct ieee80211_freq_range { 139struct ieee80211_freq_range {