Wifi connection lost since distribution upgrade to buster

Kernels, Network, and Services configuration
Post Reply
Message
Author
seb
Posts: 4
Joined: 2021-05-20 14:18

Wifi connection lost since distribution upgrade to buster

#1 Post by seb »

Hi,

I experiencing wifi connection lost since distribution upgrade from Stretch to Buster
I'm running it on a raspberrypi 3

The wifi connection is dropping after some time (minutes, hours, days)
After reboot the conection is available

I manage to restore the connection with this command:
sudo dhcpcd -n wlan0
below the logs from dhcpcd service. The connection is back when I manually rebind wlan0
I did not find anything else relevant
Does anyone have any clue of what is happening ?

May 20 12:26:17 minirasp systemd[1]: Starting dhcpcd on all interfaces...
May 20 12:26:17 minirasp dhcpcd[353]: dev: loaded udev
May 20 12:26:18 minirasp dhcpcd[353]: forked to background, child pid 413
May 20 12:26:19 minirasp dhcpcd-run-hooks[440]: wlan0: starting wpa_supplicant
May 20 12:26:19 minirasp systemd[1]: Started dhcpcd on all interfaces.
May 20 12:26:20 minirasp dhcpcd[413]: wlan0: connected to Access Point `'
May 20 12:26:20 minirasp dhcpcd[413]: eth0: waiting for carrier
May 20 12:26:20 minirasp dhcpcd[413]: wlan0: waiting for carrier
May 20 12:26:21 minirasp dhcpcd[413]: wlan0: carrier acquired
May 20 12:26:21 minirasp dhcpcd[413]: wlan0: connected to Access Point `$SSID'
May 20 12:26:21 minirasp dhcpcd[413]: DUID 00:01:00:01:27:d8:02:ce:b8:27:eb:e1:45:7e
May 20 12:26:21 minirasp dhcpcd[413]: wlan0: IAID eb:e1:45:7e
May 20 12:26:21 minirasp dhcpcd[413]: wlan0: adding address fe80::d1d8:8ce9:7d45:6b42
May 20 12:26:21 minirasp dhcpcd[413]: wlan0: soliciting an IPv6 router
May 20 12:26:22 minirasp dhcpcd[413]: wlan0: rebinding lease of 192.168.1.21
May 20 12:26:22 minirasp dhcpcd[413]: wlan0: probing address 192.168.1.21/24
May 20 12:26:22 minirasp dhcpcd[413]: wlan0: Router Advertisement from fe80::1a1e:78ff:fe4e:4d6e
May 20 12:26:22 minirasp dhcpcd[413]: wlan0: adding address 2a01:cb19:68:ba00:9b2c:b4c7:2b88:9448/64
May 20 12:26:22 minirasp dhcpcd[413]: wlan0: adding route to 2a01:cb19:68:ba00::/64
May 20 12:26:22 minirasp dhcpcd[413]: wlan0: requesting DHCPv6 information
May 20 12:26:22 minirasp dhcpcd[413]: wlan0: fe80::1a1e:78ff:fe4e:4d6e is reachable again
May 20 12:26:22 minirasp dhcpcd[413]: wlan0: adding default route via fe80::1a1e:78ff:fe4e:4d6e
May 20 12:26:27 minirasp dhcpcd[413]: wlan0: leased 192.168.1.21 for 86400 seconds
May 20 12:26:27 minirasp dhcpcd[413]: wlan0: adding route to 192.168.1.0/24
May 20 12:26:27 minirasp dhcpcd[413]: wlan0: adding default route via 192.168.1.1
May 20 12:26:28 minirasp dhcpcd[413]: control command: /sbin/dhcpcd -k wlan0
May 20 12:26:28 minirasp dhcpcd[413]: wlan0: removing interface
May 20 12:26:28 minirasp dhcpcd[413]: wlan0: deleting address 2a01:cb19:68:ba00:9b2c:b4c7:2b88:9448/64
May 20 12:26:28 minirasp dhcpcd[413]: wlan0: deleting route to 2a01:cb19:68:ba00::/64
May 20 12:26:28 minirasp dhcpcd[413]: wlan0: deleting default route via fe80::1a1e:78ff:fe4e:4d6e
May 20 12:26:28 minirasp dhcpcd[413]: wlan0: deleting address fe80::d1d8:8ce9:7d45:6b42
May 20 12:26:28 minirasp dhcpcd[413]: wlan0: releasing lease of 192.168.1.21
May 20 12:26:28 minirasp dhcpcd[413]: wlan0: dhcp_sendudp: Cannot assign requested address
May 20 12:26:28 minirasp dhcpcd[413]: wlan0: deleting route to 192.168.1.0/24
May 20 12:26:28 minirasp dhcpcd[413]: wlan0: deleting default route via 192.168.1.1
May 20 12:26:30 minirasp dhcpcd[413]: control command: /sbin/dhcpcd -k eth0
May 20 12:26:30 minirasp dhcpcd[413]: eth0: removing interface
May 20 12:26:31 minirasp dhcpcd[413]: control command: /sbin/dhcpcd -k wlan0
May 20 12:27:17 minirasp dhcpcd[413]: control command: /sbin/dhcpcd -k wlan0
May 20 12:27:18 minirasp dhcpcd[413]: control command: /sbin/dhcpcd -k eth0
May 20 12:27:23 minirasp dhcpcd[413]: control command: /sbin/dhcpcd -k wlan0
May 20 12:27:24 minirasp dhcpcd[413]: control command: /sbin/dhcpcd -k eth0
May 20 12:27:25 minirasp dhcpcd[413]: control command: /sbin/dhcpcd -k wlan0
...
...
...
May 20 16:32:41 minirasp dhcpcd[413]: control command: /sbin/dhcpcd -k wlan0
May 20 16:32:42 minirasp dhcpcd[413]: control command: /sbin/dhcpcd -k eth0
May 20 16:35:07 minirasp dhcpcd[413]: control command: dhcpcd -n wlan0
May 20 16:35:08 minirasp dhcpcd-run-hooks[22215]: wlan0: starting wpa_supplicant
May 20 16:35:08 minirasp dhcpcd[413]: wlan0: connected to Access Point `$SSID'
May 20 16:35:09 minirasp dhcpcd[413]: wlan0: carrier acquired
May 20 16:35:09 minirasp dhcpcd[413]: wlan0: IAID eb:e1:45:7e
May 20 16:35:09 minirasp dhcpcd[413]: wlan0: adding address fe80::d1d8:8ce9:7d45:6b42
May 20 16:35:09 minirasp dhcpcd[413]: wlan0: soliciting a DHCP lease
May 20 16:35:10 minirasp dhcpcd[413]: wlan0: soliciting an IPv6 router
May 20 16:35:10 minirasp dhcpcd[413]: wlan0: offered 192.168.1.21 from 192.168.1.1
May 20 16:35:10 minirasp dhcpcd[413]: wlan0: probing address 192.168.1.21/24
May 20 16:35:15 minirasp dhcpcd[413]: wlan0: leased 192.168.1.21 for 86400 seconds
May 20 16:35:15 minirasp dhcpcd[413]: wlan0: adding route to 192.168.1.0/24
May 20 16:35:15 minirasp dhcpcd[413]: wlan0: adding default route via 192.168.1.1
May 20 16:36:57 minirasp dhcpcd[413]: wlan0: Router Advertisement from fe80::1a1e:78ff:fe4e:4d6e
May 20 16:36:57 minirasp dhcpcd[413]: wlan0: adding address 2a01:cb19:68:ba00:9b2c:b4c7:2b88:9448/64
May 20 16:36:57 minirasp dhcpcd[413]: wlan0: adding route to 2a01:cb19:68:ba00::/64
May 20 16:36:57 minirasp dhcpcd[413]: wlan0: requesting DHCPv6 information
May 20 16:36:57 minirasp dhcpcd[413]: wlan0: fe80::1a1e:78ff:fe4e:4d6e is reachable again
May 20 16:36:57 minirasp dhcpcd[413]: wlan0: adding default route via fe80::1a1e:78ff:fe4e:4d6e
May 20 16:37:08 minirasp dhcpcd[413]: wlan0: fe80::1a1e:78ff:fe4e:4d6e is reachable again
May 20 16:37:08 minirasp dhcpcd[413]: wlan0: fe80::1a1e:78ff:fe4e:4d6e is reachable again

vmclark
Posts: 184
Joined: 2008-07-30 15:16

Re: Wifi connection lost since distribution upgrade to buste

#2 Post by vmclark »

Maybe look at some logs:

Code: Select all

sudo journalctl -p 3 |grep wifi

Code: Select all

sudo dmesg|grep wif

Bulkley
Posts: 6146
Joined: 2006-02-11 18:35

Re: Wifi connection lost since distribution upgrade to buste

#3 Post by Bulkley »

Something did not upgrade properly. Do you have any proprietary software such as a Wifi driver? Did you upgrade non-free firmware?

Have you tried another kernel?

seb
Posts: 4
Joined: 2021-05-20 14:18

Re: Wifi connection lost since distribution upgrade to buste

#4 Post by seb »

Bulkley wrote:Something did not upgrade properly. Do you have any proprietary software such as a Wifi driver? Did you upgrade non-free firmware?

Have you tried another kernel?
Nothing else than the drivers provided by the raspberry foundation in there repo.
Intitial installed was done with a dowload from the foundation and the distribution upgrade by changing the distribution name for repo

seb
Posts: 4
Joined: 2021-05-20 14:18

Re: Wifi connection lost since distribution upgrade to buste

#5 Post by seb »

vmclark wrote:Maybe look at some logs:

Code: Select all

sudo journalctl -p 3 |grep wifi

Code: Select all

sudo dmesg|grep wif
Indeed I get some logs with
journalctl -p 3
Most seems to be related to bleutooth driver
One line is about dhcpcd
I'm not sure it give more explanation to the issue
May 20 12:26:15 minirasp kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
May 20 12:26:15 minirasp kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
May 20 12:26:15 minirasp kernel: brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
May 20 12:26:15 minirasp kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 22 2019 01:59:28 version 7.45.98.94 (r723000 CY) F
May 20 12:26:19 minirasp kernel: brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
May 20 12:26:24 minirasp systemd[1]: Failed to start Raspberry Pi bluetooth helper.
May 20 12:26:24 minirasp bluetoothd[839]: Sap driver initialization failed.
May 20 12:26:24 minirasp bluetoothd[839]: sap-server: Operation not permitted (1)
May 20 12:26:24 minirasp bluetoothd[839]: Failed to set mode: Blocked through rfkill (0x12)
May 20 12:26:28 minirasp dhcpcd[413]: wlan0: dhcp_sendudp: Cannot assign requested address
May 20 12:26:30 minirasp kernel: brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
May 20 12:26:31 minirasp kernel: brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
May 20 12:26:33 minirasp kernel: ieee80211 phy0: brcmf_cfg80211_scan: Connecting: status (3)
May 20 12:26:56 minirasp kernel: ieee80211 phy0: brcmf_cfg80211_scan: Connecting: status (3)
May 20 12:26:57 minirasp kernel: ieee80211 phy0: brcmf_cfg80211_scan: Connecting: status (3)
May 20 12:26:58 minirasp kernel: ieee80211 phy0: brcmf_cfg80211_scan: Connecting: status (3)
May 20 12:26:59 minirasp kernel: ieee80211 phy0: brcmf_cfg80211_scan: Connecting: status (3)
May 20 12:26:59 minirasp kernel: ieee80211 phy0: brcmf_cfg80211_scan: Connecting: status (3)
May 20 12:27:17 minirasp kernel: ieee80211 phy0: brcmf_cfg80211_scan: Connecting: status (3)
May 20 12:27:18 minirasp kernel: brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled

seb
Posts: 4
Joined: 2021-05-20 14:18

Re: Wifi connection lost since distribution upgrade to buste

#6 Post by seb »

I did a script scheduled every 5 min
not ideal but it restore my connection

Code: Select all


killcount=`systemctl status dhcpcd.service | grep "dhcpcd -k wlan0" | wc -l`
if [ $killcount -gt 2 ]
then
 sudo dhcpcd -n wlan0
fi


arzgi
Posts: 800
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 4 times

Re: Wifi connection lost since distribution upgrade to buste

#7 Post by arzgi »

Seems your device has power save enabled. You found a cure, but did not solve the problem :mrgreen:

Post Reply