Troubleshoot - Wifi Unstable

Published in the topic of Linux, Network, Hardware

Wifi Unstable - Often Auto Disconnect

Error Stack

From many system logs, I got several errors.

The first is dmesg, which only display repeatedly fail to get arp ip table err on each reconnection. I maxed out the verbosity by declaring loglevel=7 and brcmfmac.debug=0xfffff kernel param, also brcmfmac module param, but at no additional lines.

# sudo journalctl --system
Dec 07 09:38:35 faznix kernel: NET: Registered protocol family 17
Dec 07 09:38:37 faznix kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
Dec 07 09:38:42 faznix kernel: brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23
Dec 07 09:39:00 faznix kernel: brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23
Dec 07 09:40:09 faznix kernel: brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23

The second is a brief carrier lost on each disconnection.

# sudo journalctl -u dhcpcd.service
May 14 08:06:10 faznix systemd[1]: Started DHCP Client.
May 14 08:06:10 faznix dhcpcd[1013]: wlp3s0: waiting for carrier
May 14 08:06:10 faznix dhcpcd[1013]: wlp3s0: carrier acquired
May 14 08:06:10 faznix dhcpcd[1013]: DUID 00:01:00:01:1f:cf:96:07:c4:b3:01:c8:e6:6b
May 14 08:06:10 faznix dhcpcd[1013]: wlp3s0: IAID 01:c8:e6:6b
May 14 08:06:10 faznix dhcpcd[1013]: wlp3s0: carrier lost
May 14 08:06:31 faznix dhcpcd[1013]: wlp3s0: carrier acquired
May 14 08:06:31 faznix dhcpcd[1013]: wlp3s0: IAID 01:c8:e6:6b
May 14 08:06:32 faznix dhcpcd[1013]: wlp3s0: soliciting an IPv6 router
May 14 08:06:32 faznix dhcpcd[1013]: wlp3s0: rebinding lease of 192.168.0.100
May 14 08:06:32 faznix dhcpcd[1013]: wlp3s0: probing address 192.168.0.100/24
May 14 08:06:37 faznix dhcpcd[1013]: wlp3s0: leased 192.168.0.100 for 7200 seconds
May 14 08:06:37 faznix dhcpcd[1013]: wlp3s0: adding route to 192.168.0.0/24
May 14 08:06:37 faznix dhcpcd[1013]: wlp3s0: adding default route via 192.168.0.1
May 14 08:06:45 faznix dhcpcd[1013]: wlp3s0: no IPv6 Routers available
May 14 08:52:43 faznix dhcpcd[1013]: wlp3s0: carrier lost
May 14 08:52:44 faznix dhcpcd[1013]: wlp3s0: deleting route to 192.168.0.0/24

The third is high level logs from wpa_supplicant.

# `sudo wpa_supplicant -Wext -i wlp3s0 -c /a/config/file.conf` stderr and stdout
wlp3s0: CTRL-EVENT-DISCONNECTED bssid=98:de:d0:29:0f:f2 reason=0
wlp3s0: Trying to associate with 98:de:d0:29:0f:f2 (SSID='My Wifi SSID' freq=2432 MHz)
ioctl[SIOCSIWFREQ]: Operation not supported
wlp3s0: Association request to the driver failed
wlp3s0: Associated with 98:de:d0:29:0f:f2
wlp3s0: WPA: Key negotiation completed with 98:de:d0:29:0f:f2 [PTK=CCMP GTK=CCMP]
wlp3s0: CTRL-EVENT-CONNECTED - Connection to 98:de:d0:29:0f:f2 completed [id=0 id_str=]

Data Gathering

Related Issue and Bugs

  1. BCM43602 connect to some WPA2 secured network causes random kernel panic:
    I see no kernel panic, but I connect to exactly WPA2 network.

  2. MacBook wifi doesn't work (brcmfmac):
    Mine's works, but keep disconnecting.

Router Specific

Only my home router causing problem.

TP-Link Troubleshoot Tips

In TP-Link's FAQ if wifi unstable mention to adjust wifi channel width into 20 Mhz when wifi may be disturbed by other wave or overcrowded. Fortunately, it works!

Solution

Adjust channel width of the home router into "20 Mhz" instead of "Auto".


abdillah