rtlwifi: rtl8188ee: Apply the new regulatory information
authorShao Fu <[email protected]>
Fri, 15 May 2015 21:33:00 +0000 (16:33 -0500)
committerKalle Valo <[email protected]>
Tue, 26 May 2015 10:56:33 +0000 (13:56 +0300)
The driver was setting a channel plan for the world. Now it reads it from
EEPROM.

Signed-off-by: Shao Fu <[email protected]>
Signed-off-by: Larry Finger <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
drivers/net/wireless/rtlwifi/rtl8188ee/hw.c

index 86ce5b1930e6d2824b66f7d5c95210c59fca6cb7..40c65b742b619428073ec5e2d99ed6f992f14945 100644 (file)
@@ -1919,8 +1919,8 @@ static void _rtl88ee_read_adapter_info(struct ieee80211_hw *hw)
                 "dev_addr: %pM\n", rtlefuse->dev_addr);
        /*channel plan */
        rtlefuse->eeprom_channelplan = hwinfo[EEPROM_CHANNELPLAN];
-       /* set channel paln to world wide 13 */
-       rtlefuse->channel_plan = COUNTRY_CODE_WORLD_WIDE_13;
+       /* set channel plan from efuse */
+       rtlefuse->channel_plan = rtlefuse->eeprom_channelplan;
        /*tx power*/
        _rtl88ee_read_txpower_info_from_hwpg(hw,
                                             rtlefuse->autoload_failflag,