Raspberry Pi 4 not beaconing sometimes

I am using the bcm2711 snapshot image and it works when not changing ssid and channel.

However, when I use my script to do ssid change, channel change, wifi down and wifi up back and forth, especially when switching band (2G to 5G). It stopping beaconing sometimes and cannot recover.

It looks like the image is not stable enough. Does anyone see this issue?

BTW: I also have a Raspberry Pi 3 B+ and it works perfectly when doing the same thing.

@drift1981, welcome to the community!

Not enough information.

  • Can you show us the script
  • What device?
  • What snapshot (version number)?

That's a very odd thing to make note of...can you explain why you're regularly changing the SSID and channel on a running device?

Yea...more explanation of the script and your use case would provide clarity.

@lleachii Thanks for your reply. The device I am using is Raspberry PI 4 B
I am using the following version which is the only support version for Pi 4, right?
https://downloads.openwrt.org/snapshots/targets/brcm2708/bcm2711/

My script is straight forward using "uci" commands and push config using ssh
NO ssid and encryption change. Only radio profile changes.

set to 2G:
uci set wireless.radio0.channel=11
uci set wireless.radio0.hwmode=11ng
wifi down
wifi

set to 5G:
uci set wireless.radio0.channel=36
uci set wireless.radio0.hwmode=11ac
wifi down
wifi

after 2~3 times back and forth, the AP stop beaconing....
It seems that the wifi driver is still not stable. PI B+ never happens on this.
Any ideas?

This is the log when device goes to dead mode. Seems to be brcm driver issue, right?
Anyone knows the details?

[    8.170602] device eth0 entered promiscuous mode
[    8.176846] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[    9.191327] bcmgenet fd580000.genet eth0: Link is Down
[   11.420911] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   11.428455] br-lan: port 2(wlan0) entered blocking state
[   11.433787] br-lan: port 2(wlan0) entered disabled state
[   11.439226] device wlan0 entered promiscuous mode
[   11.547017] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   11.553542] br-lan: port 2(wlan0) entered blocking state
[   11.558859] br-lan: port 2(wlan0) entered forwarding state
[   11.564776] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   13.351546] bcmgenet fd580000.genet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   13.359562] br-lan: port 1(eth0) entered blocking state
[   13.364822] br-lan: port 1(eth0) entered forwarding state
[  100.381937] device wlan0 left promiscuous mode
[  100.386477] br-lan: port 2(wlan0) entered disabled state
[  106.497062] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  106.506258] br-lan: port 2(wlan0) entered blocking state
[  106.511585] br-lan: port 2(wlan0) entered disabled state
[  106.517044] device wlan0 entered promiscuous mode
[  106.717746] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  106.724315] br-lan: port 2(wlan0) entered blocking state
[  106.729635] br-lan: port 2(wlan0) entered forwarding state
[  251.111564] ieee80211 phy0: brcmf_cfg80211_del_station: SCB_DEAUTHENTICATE_FOR_REASON failed -110
[  251.120509] device wlan0 left promiscuous mode
[  251.125051] br-lan: port 2(wlan0) entered disabled state
[  253.671564] ieee80211 phy0: _brcmf_set_multicast_list: Setting mcast_list failed, -110
[  256.231574] ieee80211 phy0: _brcmf_set_multicast_list: Setting allmulti failed, -110
[  261.351539] ieee80211 phy0: brcmf_cfg80211_stop_ap: SET SSID error (-110)
[  263.911540] ieee80211 phy0: _brcmf_set_multicast_list: Setting BRCMF_C_SET_PROMISC failed, -110
[  266.471616] ieee80211 phy0: brcmf_cfg80211_stop_ap: BRCMF_C_DOWN error -110
[  274.151700] ieee80211 phy0: brcmf_cfg80211_stop_ap: setting AP mode failed -110
[  279.271780] ieee80211 phy0: brcmf_cfg80211_stop_ap: BRCMF_C_UP error -110
[  281.831790] ieee80211 phy0: brcmf_set_mpc: fail to set mpc
[  289.511914] ieee80211 phy0: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[  289.520901] ieee80211 phy0: brcmf_cfg80211_get_channel: chanspec failed (-110)
[  292.071956] ieee80211 phy0: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[  292.080941] ieee80211 phy0: brcmf_cfg80211_get_tx_power: error (-110)
[  294.631971] ieee80211 phy0: _brcmf_set_multicast_list: Setting mcast_list failed, -110
[  297.192013] ieee80211 phy0: _brcmf_set_multicast_list: Setting allmulti failed, -110
[  309.992240] ieee80211 phy0: brcmf_cfg80211_stop_ap: BRCMF_C_DOWN error -110
[  312.552273] ieee80211 phy0: brcmf_cfg80211_stop_ap: setting AP mode failed -110

Can you please post the actual script so there is no confusion