mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Cc: Henri Bahini <[email protected]> Cc: Tushnim Bhattacharyya <[email protected]> Signed-off-by: Luis R. Rodriguez <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
a09a85a013
commit
2a901468c2
2 changed files with 8 additions and 0 deletions
|
|
@ -1543,6 +1543,9 @@ __reg_process_hint_country_ie(struct wiphy *wiphy,
|
|||
if (regdom_changes(country_ie_request->alpha2))
|
||||
return REG_REQ_IGNORE;
|
||||
return REG_REQ_ALREADY_SET;
|
||||
} else {
|
||||
if (wiphy->regulatory_flags & REGULATORY_COUNTRY_IE_IGNORE)
|
||||
return REG_REQ_IGNORE;
|
||||
}
|
||||
|
||||
if (unlikely(!is_an_alpha2(country_ie_request->alpha2)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue