Commit 9ca05ca4 authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by Kamal Mostafa

mwifiex: use world for unidentified region code

BugLink: https://launchpad.net/bugs/1528910

It's better to use world if region code from EEPROM is
unidentied instead of forcing it to FCC
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
(cherry picked from commit 19b0a710)
Signed-off-by: default avatarWen-chien Jesse Sung <jesse.sung@canonical.com>
Reviewed-By: default avatarAceLan Kao <acelan.kao@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent e876c0c6
......@@ -1637,9 +1637,9 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv,
if (adapter->region_code == region_code_index[i])
break;
/* If it's unidentified region code, use the default (USA) */
/* If it's unidentified region code, use the default (world) */
if (i >= MWIFIEX_MAX_REGION_CODE) {
adapter->region_code = 0x10;
adapter->region_code = 0x00;
mwifiex_dbg(adapter, WARN,
"cmd: unknown region code, use default (USA)\n");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment