Skip to content

Instantly share code, notes, and snippets.

@avoidik
Last active November 2, 2022 13:39
Show Gist options
  • Save avoidik/1f0cd4d5e62854ad80ae1dad08248be7 to your computer and use it in GitHub Desktop.
Save avoidik/1f0cd4d5e62854ad80ae1dad08248be7 to your computer and use it in GitHub Desktop.
Fix Raspberry Pi wireless driver issue

If you're getting such errors in dmesg output while facing wireless abnormal disconnects

[20718.137775] ieee80211 phy0: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[20720.697821] ieee80211 phy0: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[20720.697843] ieee80211 phy0: brcmf_cfg80211_get_station: GET STA INFO failed, -110

Update udev rules

$ cat /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="brcmfmac", KERNEL=="wlan0", RUN="/sbin/iwconfig wlan0 power off"

Reload configuration

sudo udevadm control --reload-rules && sudo udevadm trigger

As a result of this command you should see the following line in dmesg output

[21232.631104] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment