AsahiLinux / linux

Linux kernel source tree
Other
2.18k stars 84 forks source link

brcmfmac crashes in AP mode #43

Open moham96 opened 1 year ago

moham96 commented 1 year ago

Hi, Trying to make the wifi chip to work in ap fails and the driver/firmware seems to fail at setting the beacon settings

running hostapd gives this error:

wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE 
Failed to set beacon parameters 
wlan0: Could not connect to kernel driver

and the driver threw this in the kernel log

ieee80211 phy0: brcmf_cfg80211_start_ap: Beacon Interval Set Error, -52

Is this issue specific to the wifi chips on the MacBook air (driver/firmware issue) or is this a general issue in the brcmfmac and should be reported to the brcmfmac maintainers?

Regards

jvoisin commented 1 month ago

I'm having the same -52 error simply by using a WiFi network:

[Thu May 16 03:12:57 2024] ieee80211 phy0: brcmf_p2p_set_firmware: failed to update device address ret -52
[Thu May 16 03:12:57 2024] ieee80211 phy0: brcmf_p2p_create_p2pdev: set p2p_disc error
[Thu May 16 03:12:57 2024] ieee80211 phy0: brcmf_cfg80211_add_iface: add iface p2p-dev-wlp1s0f type 10 failed: err=-52
[Thu May 16 03:17:23 2024] ieee80211 phy0: brcmf_p2p_set_firmware: failed to update device address ret -52
[Thu May 16 03:17:23 2024] ieee80211 phy0: brcmf_p2p_create_p2pdev: set p2p_disc error
[Thu May 16 03:17:23 2024] ieee80211 phy0: brcmf_cfg80211_add_iface: add iface p2p-dev-wlp1s0f type 10 failed: err=-52

or

[Thu May 23 14:57:38 2024] ieee80211 phy0: brcmf_dongle_roam: WLC_SET_ROAM_DELTA error (-52)
[Thu May 23 14:57:38 2024] ieee80211 phy0: brcmf_p2p_set_firmware: failed to update device address ret -52
[Thu May 23 14:57:38 2024] ieee80211 phy0: brcmf_p2p_create_p2pdev: set p2p_disc error
[Thu May 23 14:57:38 2024] ieee80211 phy0: brcmf_cfg80211_add_iface: add iface p2p-dev-wlp1s0f type 10 failed: err=-52