Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> writes: > Larry Finger <Larry.Finger@xxxxxxxxxxxx> writes: >> On 02/04/2016 10:45 AM, Jes Sorensen wrote: >>> Drunk Cat <natserver2@xxxxxxxxx> writes: >>>> problem: it does not connect to any wifi network you can see the time out on >>>> dmesg >>>> >>>> >>>>> lsusb >>>> >>>> Bus 002 Device 007: ID 0bda:817f Realtek Semiconductor Corp. RTL8188RU >>>> 802.11n WLAN Adapter >>>> >>>>> iwconfig >>>> wlp0s20u1 IEEE 802.11bgn ESSID:off/any >>>> Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm >>>> Retry short limit:7 RTS thr=2347 B Fragment thr:off >>>> Power Management:off >>>>> dmesg >>> >>> Not sure what distribution you are running, but I am seeing problems >>> with NetworkManager in recent Fedora. >>> >>> Could you try the following: >>> 1) Unplug the WiFi dongle >>> 2) (Re)load the driver (rmmod rtl8xxxu ; insmod rtl8xxxu) >>> 3) Restart NetworkManager 'systemctl restart NetworkManager' >>> 4) Plug in the WiFi dongle >> >> Jes, >> >> I can confirm what Drunk Cat sees. There is something different about >> the RTL8192RU as using the iwconfig utility shows no APs in the >> scan. I hope to get to debugging the problem soon. > > OK - thats unfortunate. Most likely the wrong antenna path is being > enabled for it, or something like that. > > Once I finish up the 8723bu/8192eu patchset, I'll try to find some time > to look at it, if you don't nail it before. One more time with the actual patch ... Jes
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c index b0adc2d..e4b8d75 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c @@ -3810,7 +3810,7 @@ static int rtl8xxxu_init_phy_bb(struct rtl8xxxu_priv *priv) rtl8xxxu_write32(priv, REG_FPGA1_TX_INFO, val32); val32 = rtl8xxxu_read32(priv, REG_CCK0_AFE_SETTING); - val32 &= 0xff000000; + val32 &= 0x00ffffff; val32 |= 0x45000000; rtl8xxxu_write32(priv, REG_CCK0_AFE_SETTING, val32);