You are not logged in.

#1 2022-03-23 18:12:17

Herbalist
Member
Registered: 2014-01-12
Posts: 58

[Solved] Wifi connection dropping frequently

Wifi setup is using Network Manager and wpa_supplicant.

steps I tried so far:

To change the DHCP client backend, set the option main.dhcp=dhcp_client_name with a configuration file in /etc/NetworkManager/conf.d/ from
DHCP client
Disabling MAC address randomization
wifi.scan-rand-mac-address=no

this is a recent problem, but since I don't use the wifii connection very often on my machine I haven't noticed it until now, I just thought that my wifi connection was not that good, but the problem seems to be happening only on the machine running arch.

it happens mainly every time when a process that requests a lot of packets is running, like updating the system for example. the internet speed drops and waits for a connection to be reestablished with the router automatically, if I run nmcli connection up, the connection is established quickly again.

wifi-card:

Network:
  Device-1: Qualcomm Atheros AR9485 Wireless Network Adapter vendor: Lite-On
    driver: ath9k v: kernel bus-ID: 03:00.0
  IF: wlp3s0 state: up mac: <filter>

kernel:
5.15.30-1-lts

systemctl list-unit-files --state=enabled

UNIT FILE                          STATE   VENDOR PRESET
getty@.service                     enabled enabled
httpd.service                      enabled disabled
mariadb.service                    enabled disabled
NetworkManager-dispatcher.service  enabled disabled
NetworkManager-wait-online.service enabled disabled
NetworkManager.service             enabled disabled
thermald.service                   enabled disabled
ufw.service                        enabled disabled
remote-fs.target                   enabled enabled
fstrim.timer                       enabled disabled

systemctl list-units --type service --no-pager

  UNIT                                                                     LOAD   ACTIVE SUB     DESCRIPTION
  alsa-restore.service                                                     loaded active exited  Save/Restore Sound Card State
  dbus.service                                                             loaded active running D-Bus System Message Bus
  dhclient@wlp3s0.service                                                  loaded active running dhclient on wlp3s0
  getty@tty1.service                                                       loaded active running Getty on tty1
  httpd.service                                                            loaded active running Apache Web Server
  kmod-static-nodes.service                                                loaded active exited  Create List of Static Device Nodes
  lvm2-monitor.service                                                     loaded active exited  Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress po…
  mariadb.service                                                          loaded active running MariaDB 10.7.3 database server
  NetworkManager.service                                                   loaded active running Network Manager
  polkit.service                                                           loaded active running Authorization Manager
  rtkit-daemon.service                                                     loaded active running RealtimeKit Scheduling Policy Service
  systemd-backlight@backlight:intel_backlight.service                      loaded active exited  Load/Save Screen Backlight Brightness of backlight:intel_backlight
  systemd-fsck@dev-disk-by\x2duuid-06D4\x2d20BA.service                    loaded active exited  File System Check on /dev/disk/by-uuid/06D4-20BA
  systemd-fsck@dev-disk-by\x2duuid-4c4e7b97\x2d5c5f\x2d411b\x2d82c5\x2d5a… loaded active exited  File System Check on /dev/disk/by-uuid/4c4e7b97-5c5f-411b-82c5-5a3bd5c5f…
  systemd-journal-flush.service                                            loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service                                                 loaded active running Journal Service
  systemd-logind.service                                                   loaded active running User Login Management
  systemd-modules-load.service                                             loaded active exited  Load Kernel Modules
  systemd-random-seed.service                                              loaded active exited  Load/Save Random Seed
  systemd-remount-fs.service                                               loaded active exited  Remount Root and Kernel File Systems
  systemd-sysctl.service                                                   loaded active exited  Apply Kernel Variables
  systemd-tmpfiles-setup-dev.service                                       loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                                           loaded active exited  Create Volatile Files and Directories
  systemd-udev-trigger.service                                             loaded active exited  Coldplug All udev Devices
  systemd-udevd.service                                                    loaded active running Rule-based Manager for Device Events and Files
  systemd-update-utmp.service                                              loaded active exited  Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service                                            loaded active exited  Permit User Sessions
  thermald.service                                                         loaded active running Thermal Daemon Service
  udisks2.service                                                          loaded active running Disk Manager
  ufw.service                                                              loaded active exited  CLI Netfilter Manager
  upower.service                                                           loaded active running Daemon for power management
  user-runtime-dir@1000.service                                            loaded active exited  User Runtime Directory /run/user/1000
  user@1000.service                                                        loaded active running User Manager for UID 1000
  wpa_supplicant.service                                                   loaded active running WPA supplicant

dmesg

[ 7908.389868] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
[ 7909.745523] wlp3s0: authenticate with 10:7b:44:99:41:f0
[ 7909.767025] wlp3s0: send auth to 10:7b:44:99:41:f0 (try 1/3)
[ 7909.770038] wlp3s0: authenticated
[ 7909.784315] wlp3s0: associate with 10:7b:44:99:41:f0 (try 1/3)
[ 7909.787391] wlp3s0: RX AssocResp from 10:7b:44:99:41:f0 (capab=0xc31 status=0 aid=4)
[ 7909.787553] wlp3s0: associated

journalctl -f

Mar 23 19:48:59  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-BEACON-LOSS
Mar 23 19:49:00  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-BEACON-LOSS
Mar 23 19:49:01  kernel: ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
Mar 23 19:49:01  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=10:7b:44:99:41:f0 reason=4 locally_generated=1
Mar 23 19:49:01  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Mar 23 19:49:01  NetworkManager[546]: <info>  [1648057741.3946] device (wlp3s0): supplicant interface state: completed -> disconnected
Mar 23 19:49:01  NetworkManager[546]: <info>  [1648057741.3947] device (p2p-dev-wlp3s0): supplicant management interface state: completed -> disconnected
Mar 23 19:49:01  NetworkManager[546]: <info>  [1648057741.4068] device (wlp3s0): supplicant interface state: disconnected -> scanning
Mar 23 19:49:01  NetworkManager[546]: <info>  [1648057741.4068] device (p2p-dev-wlp3s0): supplicant management interface state: disconnected -> scanning
Mar 23 19:49:02  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Mar 23 19:49:02  wpa_supplicant[601]: wlp3s0: SME: Trying to authenticate with 10:7b:44:99:41:f0 (SSID='loading' freq=2472 MHz)
Mar 23 19:49:02  kernel: wlp3s0: authenticate with 10:7b:44:99:41:f0
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.6915] device (wlp3s0): supplicant interface state: scanning -> authenticating
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.6916] device (p2p-dev-wlp3s0): supplicant management interface state: scanning -> authenticating
Mar 23 19:49:02  wpa_supplicant[601]: wlp3s0: Trying to associate with 10:7b:44:99:41:f0 (SSID='loading' freq=2472 MHz)
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.6956] device (wlp3s0): supplicant interface state: authenticating -> associating
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.6956] device (p2p-dev-wlp3s0): supplicant management interface state: authenticating -> associating
Mar 23 19:49:02  kernel: wlp3s0: send auth to 10:7b:44:99:41:f0 (try 1/3)
Mar 23 19:49:02  kernel: wlp3s0: authenticated
Mar 23 19:49:02  kernel: wlp3s0: associate with 10:7b:44:99:41:f0 (try 1/3)
Mar 23 19:49:02  wpa_supplicant[601]: RRM: Ignoring radio measurement request: Not associated
Mar 23 19:49:02  wpa_supplicant[601]: wlp3s0: Associated with 10:7b:44:99:41:f0
Mar 23 19:49:02  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.7077] device (wlp3s0): supplicant interface state: associating -> associated
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.7078] device (p2p-dev-wlp3s0): supplicant management interface state: associating -> associated
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.7078] device (wlp3s0): ip:dhcp4: restarting
Mar 23 19:49:02  kernel: wlp3s0: RX AssocResp from 10:7b:44:99:41:f0 (capab=0xc31 status=0 aid=4)
Mar 23 19:49:02  kernel: wlp3s0: associated
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.7723] dhcp4 (wlp3s0): canceled DHCP transaction, DHCP client pid 133946
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.7724] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.7724] dhcp4 (wlp3s0): state changed no lease
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.7725] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Mar 23 19:49:02  NetworkManager[546]: <info>  [1648057742.7736] dhcp4 (wlp3s0): dhclient started with pid 141043
Mar 23 19:49:02  dhclient[141043]: DHCPREQUEST for 192.168.1.7 on wlp3s0 to 255.255.255.255 port 67
Mar 23 19:49:03  wpa_supplicant[601]: wlp3s0: WPA: Key negotiation completed with 10:7b:44:99:41:f0 [PTK=CCMP GTK=CCMP]
Mar 23 19:49:03  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-CONNECTED - Connection to 10:7b:44:99:41:f0 completed [id=0 id_str=]
Mar 23 19:49:03  NetworkManager[546]: <info>  [1648057743.0397] device (wlp3s0): supplicant interface state: associated -> completed
Mar 23 19:49:03  NetworkManager[546]: <info>  [1648057743.0400] device (p2p-dev-wlp3s0): supplicant management interface state: associated -> completed
Mar 23 19:49:03  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-80 noise=-95 txrate=13500
Mar 23 19:49:06  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-BEACON-LOSS
Mar 23 19:49:07  kernel: ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100
Mar 23 19:49:07  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=10:7b:44:99:41:f0 reason=4 locally_generated=1
Mar 23 19:49:07  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Mar 23 19:49:07  NetworkManager[546]: <info>  [1648057747.3748] device (wlp3s0): supplicant interface state: completed -> disconnected
Mar 23 19:49:07  NetworkManager[546]: <info>  [1648057747.3749] device (p2p-dev-wlp3s0): supplicant management interface state: completed -> disconnected
Mar 23 19:49:07  NetworkManager[546]: <info>  [1648057747.4268] device (wlp3s0): supplicant interface state: disconnected -> scanning
Mar 23 19:49:07  NetworkManager[546]: <info>  [1648057747.4269] device (p2p-dev-wlp3s0): supplicant management interface state: disconnected -> scanning
Mar 23 19:49:08  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Mar 23 19:49:08  wpa_supplicant[601]: wlp3s0: SME: Trying to authenticate with 10:7b:44:99:41:f0 (SSID='loading' freq=2472 MHz)
Mar 23 19:49:08  kernel: wlp3s0: authenticate with 10:7b:44:99:41:f0
Mar 23 19:49:08  NetworkManager[546]: <info>  [1648057748.7314] device (wlp3s0): supplicant interface state: scanning -> authenticating
Mar 23 19:49:08  NetworkManager[546]: <info>  [1648057748.7315] device (p2p-dev-wlp3s0): supplicant management interface state: scanning -> authenticating
Mar 23 19:49:08  kernel: wlp3s0: send auth to 10:7b:44:99:41:f0 (try 1/3)
Mar 23 19:49:08  wpa_supplicant[601]: wlp3s0: Trying to associate with 10:7b:44:99:41:f0 (SSID='loading' freq=2472 MHz)
Mar 23 19:49:08  NetworkManager[546]: <info>  [1648057748.7402] device (wlp3s0): supplicant interface state: authenticating -> associating
Mar 23 19:49:08  NetworkManager[546]: <info>  [1648057748.7402] device (p2p-dev-wlp3s0): supplicant management interface state: authenticating -> associating
Mar 23 19:49:08  kernel: wlp3s0: authenticated
Mar 23 19:49:08  kernel: wlp3s0: associate with 10:7b:44:99:41:f0 (try 1/3)
Mar 23 19:49:08  wpa_supplicant[601]: RRM: Ignoring radio measurement request: Not associated
Mar 23 19:49:08  wpa_supplicant[601]: wlp3s0: Associated with 10:7b:44:99:41:f0
Mar 23 19:49:08  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Mar 23 19:49:08  NetworkManager[546]: <info>  [1648057748.7574] device (wlp3s0): supplicant interface state: associating -> associated
Mar 23 19:49:08  NetworkManager[546]: <info>  [1648057748.7574] device (p2p-dev-wlp3s0): supplicant management interface state: associating -> associated
Mar 23 19:49:08  NetworkManager[546]: <info>  [1648057748.7574] device (wlp3s0): ip:dhcp4: restarting
Mar 23 19:49:08  kernel: wlp3s0: RX AssocResp from 10:7b:44:99:41:f0 (capab=0xc31 status=0 aid=4)
Mar 23 19:49:08  kernel: wlp3s0: associated
Mar 23 19:49:08  NetworkManager[546]: <info>  [1648057748.8719] dhcp4 (wlp3s0): canceled DHCP transaction, DHCP client pid 141043
Mar 23 19:49:08  NetworkManager[546]: <info>  [1648057748.8720] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Mar 23 19:49:08  NetworkManager[546]: <info>  [1648057748.8734] dhcp4 (wlp3s0): dhclient started with pid 141140
Mar 23 19:49:08  dhclient[141140]: DHCPREQUEST for 192.168.1.7 on wlp3s0 to 255.255.255.255 port 67
Mar 23 19:49:09  wpa_supplicant[601]: wlp3s0: WPA: Key negotiation completed with 10:7b:44:99:41:f0 [PTK=CCMP GTK=CCMP]
Mar 23 19:49:09  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-CONNECTED - Connection to 10:7b:44:99:41:f0 completed [id=0 id_str=]
Mar 23 19:49:09  NetworkManager[546]: <info>  [1648057749.1397] device (wlp3s0): supplicant interface state: associated -> completed
Mar 23 19:49:09  NetworkManager[546]: <info>  [1648057749.1399] device (p2p-dev-wlp3s0): supplicant management interface state: associated -> completed
Mar 23 19:49:09  wpa_supplicant[601]: wlp3s0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-71 noise=-95 txrate=1000
Mar 23 19:49:12  dhclient[141140]: DHCPREQUEST for 192.168.1.7 on wlp3s0 to 255.255.255.255 port 67
Mar 23 19:49:12  dhclient[141140]: DHCPACK of 192.168.1.7 from 192.168.1.1

Last edited by Herbalist (2022-03-25 11:37:03)

Offline

#2 2022-03-23 18:35:33

edacval
Member
From: .LT
Registered: 2008-10-23
Posts: 98

Re: [Solved] Wifi connection dropping frequently

Offline

#3 2022-03-25 11:36:44

Herbalist
Member
Registered: 2014-01-12
Posts: 58

Re: [Solved] Wifi connection dropping frequently

reverting back to 5.15.28-1-lts solves this problem, thanks edacval.

Offline

#4 2022-03-25 11:46:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [Solved] Wifi connection dropping frequently

Moving to Kernel & Hardware

Offline

Board footer

Powered by FluxBB