diff mbox

Signal loss rtl8723ae wifi driver

Message ID 520AFD5C.3010905@lwfinger.net (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Larry Finger Aug. 14, 2013, 3:45 a.m. UTC
On 08/13/2013 11:23 AM, Phillip Moss wrote:
> Hi all,
> I have a rtl8723ae wifi card on my laptop. When connecting to any wifi Access Point
> the wifi signal fluctuates from full strength to very low.  In order to connect and
> stay connected I must be no farther than two meters from my router otherwise I get
> disconnected. I have tried the kernel driver on multiple distros as well as the
> vendor drivers for older kernel versions. All seem to have the same problem. The card
> works ok on Windows 7 with vendor drivers. I have also tried compiling
> backports-3.10-rc1-2 with no luck. During a signal loss period I get no logs but if I
> take the laptop too far from the AP dmesg reports:

Philip,

Could you try the attached patch?

Larry

Comments

Phillip Moss Aug. 20, 2013, 8:50 p.m. UTC | #1
Hi Larry,
Sorry for taking so long to reply.
I am using Arch Linux  3.10.7-1-ARCH  x86_64 with KDE and Network-Manager.
wlp3s0 is the name of my wireless interface: https://wiki.archlinux.org/index.php/Network_Configuration#Network_Interfaces
I have renamed the interface to the default wlan0 we all know and love with: ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules

To measure signal strength I am using "Link Quality", "Signal Level" from iwconfig and signal strength from network manager.

When I am right next to my router I get between: -36  and -42dbm.
Link quality is between 68/70 and 70/70.
Network Manager reports signal at 84%.

When a signal loss period ocurrs Link quality drops to 14/70 (In some cases 12-13) and then quickly jumps back up to 40 then up to 68-70.
While this happens Signal level bounces up to between +2 and +10dbm then backdown to around -90dbm and then stabalizes again at -36 -42.
Network Manager reports signal around 32%

If I step a few meters away signal level is stable around -52 and -64 dbm. Link Quality is around 56/70.
During a Signal loss period Link Quality jumps down to about 12-13/70 and Signal Level to around 14dbm with occasional spikes up to 99.
These spikes only sometimes result in the interface dropping the connection to the AP when at this distance, but never when I am very close to the router.

I am not sure if this is pure paranoia but it seems that the card gets “stuck” and then keeps on receiving/transmitting. To see if this was true I tried airodump and it does seem as if the card stops receiving beacons at irregular intervals.

I have recompiled backports with the proposed patch and I am still experiencing the same problem.
Thank you very much for all your help,
Phillip

--------------------------------------------
El mié, 14/8/13, Larry Finger <Larry.Finger@lwfinger.net> escribió:

 Asunto: Re: Signal loss rtl8723ae wifi driver
 Para: "Phillip Moss" <phillipmoss12@yahoo.es>
 CC: linux-wireless@vger.kernel.org
 Fecha: miércoles, 14 de agosto, 2013 05:45
 
 On 08/13/2013 11:23 AM, Phillip Moss
 wrote:
 > Hi all,
 > I have a rtl8723ae wifi card on my laptop. When
 connecting to any wifi Access Point
 > the wifi signal fluctuates from full strength to very
 low.  In order to connect and
 > stay connected I must be no farther than two meters
 from my router otherwise I get
 > disconnected. I have tried the kernel driver on
 multiple distros as well as the
 > vendor drivers for older kernel versions. All seem to
 have the same problem. The card
 > works ok on Windows 7 with vendor drivers. I have also
 tried compiling
 > backports-3.10-rc1-2 with no luck. During a signal loss
 period I get no logs but if I
 > take the laptop too far from the AP dmesg reports:
 
 Philip,
 
 Could you try the attached patch?
 
 Larry
 
 
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/trx.c b/drivers/net/wireless/rtlwifi/rtl8723ae/trx.c
index c72758d..75cf6fe 100644
--- a/drivers/net/wireless/rtlwifi/rtl8723ae/trx.c
+++ b/drivers/net/wireless/rtlwifi/rtl8723ae/trx.c
@@ -130,7 +130,7 @@  static void _rtl8723ae_query_rxphystatus(struct ieee80211_hw *hw,
 		/* CCK gain is smaller than OFDM/MCS gain,
 		 * so we add gain diff. From experience, the val is 6
 		 */
-		pwdb_all += 6;
+		pwdb_all += 10;
 		if (pwdb_all > 100)
 			pwdb_all = 100;
 		/* modify the offset to make the same