mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
wil6210: add option to ignore OTA regulatory hints
On some platforms, the regulatory domain (country) is set using mechanisms external to WIFI, such as cellular modem and GPS. In these scenarios the regulatory hints that are received over the air (in beacons and similar) can conflict and even cause an incorrect country to be set. Add an option to ignore the OTA regulatory hints to better support such scenarios. Change-Id: Ia46fe2699f4cc9859713947c0153107462fdec06 Signed-off-by: Lior David <liord@codeaurora.org> [ailizaro@codeaurora.org: trivial conflict fixes] Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
This commit is contained in:
parent
c6e8883661
commit
f0cfac4600
1 changed files with 9 additions and 0 deletions
|
|
@ -41,6 +41,10 @@ static struct wiphy_wowlan_support wil_wowlan_support = {
|
|||
};
|
||||
#endif
|
||||
|
||||
static bool ignore_reg_hints = true;
|
||||
module_param(ignore_reg_hints, bool, 0444);
|
||||
MODULE_PARM_DESC(ignore_reg_hints, " Ignore OTA regulatory hints (Default: true)");
|
||||
|
||||
#define CHAN60G(_channel, _flags) { \
|
||||
.band = NL80211_BAND_60GHZ, \
|
||||
.center_freq = 56160 + (2160 * (_channel)), \
|
||||
|
|
@ -2725,6 +2729,11 @@ static void wil_wiphy_init(struct wiphy *wiphy)
|
|||
wiphy->vendor_events = wil_nl80211_vendor_events;
|
||||
wiphy->n_vendor_events = ARRAY_SIZE(wil_nl80211_vendor_events);
|
||||
|
||||
if (ignore_reg_hints) {
|
||||
wiphy->regulatory_flags |= REGULATORY_DISABLE_BEACON_HINTS;
|
||||
wiphy->regulatory_flags |= REGULATORY_COUNTRY_IE_IGNORE;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
wiphy->wowlan = &wil_wowlan_support;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue