diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2015-12-04 06:13:05 -0800 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-12-11 13:24:14 +0200 |
commit | 947d315257f9b25b0e24f5706f8184b3b00774d4 (patch) | |
tree | 288a880f16d355c084fc01295fc376f3f455b88b /drivers/net/wireless/marvell/mwifiex/sta_ioctl.c | |
parent | 658cb59232b1b853385ded3d4ed587b410457787 (diff) | |
download | op-kernel-dev-947d315257f9b25b0e24f5706f8184b3b00774d4.zip op-kernel-dev-947d315257f9b25b0e24f5706f8184b3b00774d4.tar.gz |
mwifiex: don't follow AP if country code received from EEPROM
If device has already received country information from
EEPROM, we won't parse AP's country IE and download it to
firmware. We will also set regulatory flags to disable beacon
hints and ignore country IE.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/sta_ioctl.c')
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/sta_ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c b/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c index 80f5064..62b35a3 100644 --- a/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c @@ -272,7 +272,8 @@ int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss, priv->scan_block = false; if (bss) { - mwifiex_process_country_ie(priv, bss); + if (adapter->region_code == 0x00) + mwifiex_process_country_ie(priv, bss); /* Allocate and fill new bss descriptor */ bss_desc = kzalloc(sizeof(struct mwifiex_bssdescriptor), |