package/devel/binutils: Update to 2.27
[openwrt/staging/yousong.git] / package / kernel / mac80211 / patches / 660-0019-rtl8xxxu-Do-not-mess-with-REG_FPGA0_XA_RF_INT_OE-eit.patch
1 From a4234121f383eed37e0a5ea8aed56bb75027305c Mon Sep 17 00:00:00 2001
2 From: Jes Sorensen <Jes.Sorensen@redhat.com>
3 Date: Wed, 20 Jul 2016 14:38:23 -0400
4 Subject: [PATCH] rtl8xxxu: Do not mess with REG_FPGA0_XA_RF_INT_OE either on
5 8188eu
6
7 On older devices the vendor driver hard codes a value into
8 REG_FPGA0_XA_RF_INT_OE for antenna selection. This probably shouldn't
9 be done in the first place, but more investigation needs to be done to
10 figure out how this really works.
11
12 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
13 ---
14 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
18 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
19 @@ -3976,7 +3976,7 @@ static int rtl8xxxu_init_device(struct i
20 rtl8xxxu_write32(priv, REG_FPGA0_XAB_RF_SW_CTRL, val32);
21
22 /* 0x860[6:5]= 00 - why? - this sets antenna B */
23 - if (priv->rtl_chip != RTL8192E)
24 + if (priv->rtl_chip != RTL8192E && priv->rtl_chip != RTL8188E)
25 rtl8xxxu_write32(priv, REG_FPGA0_XA_RF_INT_OE, 0x66f60210);
26
27 if (!macpower) {