mac80211: use wiphy_read_of_freq_limits in brcmfmac
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 653-0018-rtl8xxxu-Do-not-set-REG_FPGA0_TX_INFO-on-8188eu.patch
1 From 519d0047f84cdd1050418bb86dd34a0c6df1206a Mon Sep 17 00:00:00 2001
2 From: Jes Sorensen <Jes.Sorensen@redhat.com>
3 Date: Wed, 20 Jul 2016 14:32:46 -0400
4 Subject: [PATCH] rtl8xxxu: Do not set REG_FPGA0_TX_INFO on 8188eu
5
6 The vendor driver doesn't set this for 8188eu either. It is unclear if
7 this is only relevant for gen1 parts.
8
9 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
10 ---
11 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
15 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
16 @@ -3962,7 +3962,8 @@ static int rtl8xxxu_init_device(struct i
17 goto exit;
18
19 /* RFSW Control - clear bit 14 ?? */
20 - if (priv->rtl_chip != RTL8723B && priv->rtl_chip != RTL8192E)
21 + if (priv->rtl_chip != RTL8723B && priv->rtl_chip != RTL8192E &&
22 + priv->rtl_chip != RTL8188E)
23 rtl8xxxu_write32(priv, REG_FPGA0_TX_INFO, 0x00000003);
24
25 val32 = FPGA0_RF_TRSW | FPGA0_RF_TRSWB | FPGA0_RF_ANTSW |