rtlwifi: rtl8192ee: Apply the regulatory changes to driver
authorShao Fu <shaofu@realtek.com>
Fri, 15 May 2015 21:33:01 +0000 (16:33 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 May 2015 10:56:34 +0000 (13:56 +0300)
The driver was setting a channel plan for the world. Now it reads it fromi
EEPROM.

In addition, a typo was fixed.

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/rtl8192ee/hw.c

index da0a612..0705e7e 100644 (file)
@@ -2194,8 +2194,8 @@ static void _rtl92ee_read_adapter_info(struct ieee80211_hw *hw)
                 "dev_addr: %pM\n", rtlefuse->dev_addr);
        /*channel plan */
        rtlefuse->eeprom_channelplan = *(u8 *)&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*/
        _rtl92ee_read_txpower_info_from_hwpg(hw, rtlefuse->autoload_failflag,
                                             hwinfo);