]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtlwifi: rtl8821ae: Fix problem with regulatory information
authorShao Fu <shaofu@realtek.com>
Fri, 15 May 2015 21:33:03 +0000 (16:33 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 May 2015 10:56:37 +0000 (13:56 +0300)
The driver was not setting a channel plan. Now it gets it from 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/rtl8821ae/hw.c

index 8704eee9f3a495108e93135d6e306a090c322bc7..450bd4d743d0ddea20e09aefd9e581f83496c756 100644 (file)
@@ -3232,8 +3232,8 @@ static void _rtl8821ae_read_adapter_info(struct ieee80211_hw *hw, bool b_pseudo_
        if (rtlefuse->eeprom_channelplan == 0xff)
                rtlefuse->eeprom_channelplan = 0x7F;
 
-       /* set channel paln to world wide 13 */
-       /* rtlefuse->channel_plan = (u8)rtlefuse->eeprom_channelplan; */
+       /* set channel plan from efuse */
+       rtlefuse->channel_plan = rtlefuse->eeprom_channelplan;
 
        /*parse xtal*/
        rtlefuse->crystalcap = hwinfo[EEPROM_XTAL_8821AE];