rtlwifi: rtl8723be: Update driver for regulatory changes
authorShao Fu <shaofu@realtek.com>
Fri, 15 May 2015 21:33:02 +0000 (16:33 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 May 2015 10:56:36 +0000 (13:56 +0300)
The driver is converted to use the channel plan in the EEPROM.

Signed-off-by: Shao Fu <shaofu@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/rtl8723be/hw.c

index b681af3c7a355d66fb411c71dcdcbba5bb8dfc01..e0f679bbcdafb8c7b9cb7070d7845c91a1c3c800 100644 (file)
@@ -2139,8 +2139,8 @@ static void _rtl8723be_read_adapter_info(struct ieee80211_hw *hw,
        RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
                 "EEPROM Customer ID: 0x%2x\n", rtlefuse->eeprom_oemid);
 
-       /* set channel plan to world wide 13 */
-       rtlefuse->channel_plan = COUNTRY_CODE_WORLD_WIDE_13;
+       /* set channel plan from efuse */
+       rtlefuse->channel_plan = rtlefuse->eeprom_channelplan;
 
        if (rtlhal->oem_id == RT_CID_DEFAULT) {
                /* Does this one have a Toshiba SMID from group 1? */