It is still unclear how the problem arises that the connection to the router is lost via wlan0 without any external cause.
The essential messages in the log are listed again here:
The last 3 lines repeat themselves endlessly and indicate that something is going wrong in the Broadcom WiFi Driver or in its environment.
Until the problem is fixed, I came across the following script while looking for a workaround:
If the connection is lost, the NetworkManager service is restarted, which solves the problem until the next time it occurs. The script is executed at regular intervals via crontab.
As described in the first post, the problem can be easily reproduced. I therefore hope that there will be a fix for this soon.
The essential messages in the log are listed again here:
Code:
Feb 25 14:32:56 RaspberryPi wpa_supplicant[866]: wlan0: CTRL-EVENT-DISCONNECTED bssid=c8:0e:14:27:6d:b5 reason=3Feb 25 14:32:56 RaspberryPi wpa_supplicant[866]: Removed BSSID c8:0e:14:27:6d:b4 from ignore list (expired)Feb 25 14:32:56 RaspberryPi NetworkManager[865]: <info> [1708867976.5641] device (wlan0): supplicant interface state: completed -> disconnectedFeb 25 14:32:56 RaspberryPi NetworkManager[865]: <info> [1708867976.5641] device (p2p-dev-wlan0): supplicant management interface state: completed -> disconnectedFeb 25 14:32:56 RaspberryPi kernel: ieee80211 phy0: brcmf_run_escan: error (-52)Feb 25 14:32:56 RaspberryPi kernel: ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52)Feb 25 14:32:56 RaspberryPi wpa_supplicant[866]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-52 retry=1Feb 25 14:32:57 RaspberryPi wpa_supplicant[866]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-52 retry=1
Until the problem is fixed, I came across the following script while looking for a workaround:
Code:
#!/bin/bash# restart NetworkManager when wlan0 disappearedif [ "$(nmcli -g GENERAL.STATE dev show wlan0)" = "30 (disconnected)" ]; thenecho "wlan0 disconnected"systemctl restart NetworkManagerfi
As described in the first post, the problem can be easily reproduced. I therefore hope that there will be a fix for this soon.
Statistics: Posted by phylax — Tue Feb 27, 2024 12:06 pm