Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d10101a6 authored by Shao Fu's avatar Shao Fu Committed by Kalle Valo
Browse files

rtlwifi: rtl8821ae: Fix problem with regulatory information



The driver was not setting a channel plan. Now it gets it from EEPROM.

Signed-off-by: default avatarShao Fu <shaofu@realtek.com>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent b23cd22d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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];