mwifiex: use world for unidentified region code
authorAmitkumar Karwar <akarwar@marvell.com>
Mon, 14 Dec 2015 12:15:14 +0000 (04:15 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 30 Dec 2015 14:58:08 +0000 (16:58 +0200)
It's better to use world if region code from EEPROM is
unidentied instead of forcing it to FCC

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cmdevt.c

index 45ae38e32621805edb24168963a6ee915754148c..cb25aa7e90db19d54df9b556d677c3a460093d77 100644 (file)
@@ -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");
        }