rtl8xxxu: Set register 0xfe10 on rtl8192cu based parts
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 14 Apr 2016 20:37:15 +0000 (16:37 -0400)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 15 Apr 2016 18:38:11 +0000 (21:38 +0300)
This register is undocumented in the vendor code, but it is set
unconditionally for all 8192cu/8188cu/8188ru parts.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c

index de62f0ba11d74e5511329ecb89011282454359ff..6280d3d0cec78146a0a3bf7c94313980287a52ef 100644 (file)
@@ -7214,6 +7214,8 @@ static int rtl8192cu_power_on(struct rtl8xxxu_priv *priv)
                CR_SCHEDULE_ENABLE | CR_MAC_TX_ENABLE | CR_MAC_RX_ENABLE;
        rtl8xxxu_write16(priv, REG_CR, val16);
 
+       rtl8xxxu_write8(priv, 0xfe10, 0x19);
+
        /*
         * Workaround for 8188RU LNA power leakage problem.
         */