BPI-R4 - wifi7 broken since last update

I updated to latest openwrt snapshot. There was a big change from the interface naming, it was eth2 and now is sfp-wan. Also with eth1 which is now sfp-lan. I changed all occurances and all seems to work except wifi 7.

Sun Dec 29 17:56:40 2024 daemon.notice hostapd: phy0.1-ap0: AP-ENABLED
Sun Dec 29 17:56:44 2024 daemon.notice netifd: radio2 (19668): WARNING: Variable 'data' does not exist or is not an array/object
Sun Dec 29 17:56:44 2024 daemon.notice hostapd: Set new config for phy phy0.2:
Sun Dec 29 17:56:44 2024 daemon.notice wpa_supplicant[1779]: Set new config for phy phy0.2
Sun Dec 29 17:56:45 2024 daemon.notice wpa_supplicant[1779]: Set new config for phy phy0.2
Sun Dec 29 17:56:45 2024 daemon.notice hostapd: Set new config for phy phy0.2: /var/run/hostapd-phy0.2.conf
Sun Dec 29 17:56:45 2024 daemon.notice hostapd: Restart interface for phy phy0.2
Sun Dec 29 17:56:45 2024 daemon.notice hostapd: Configuration file: data: driver=nl80211 logger_syslog=127 logger_syslog_level=2 logger_stdout=127 logger_stdout_level=2 hw_mode=a beacon_int=100 stationary_ap=1 tx_queue_data2_burst=2.0 #num_global_macaddr=1 #macaddr_base= ieee80211n=1 ht_coex=0 ht_capab=[HT40+][LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935] ieee80211ac=1 vht_oper_chwidth=2 vht_oper_centr_freq_seg0_idx=acs_survey vht_capab=[RXLDPC][SHORT-GI-80][SHORT-GI-160][TX-STBC-2BY1][SU-BEAMFORMER][SU-BEAMFORMEE][MU-BEAMFORMER][MU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][SOUNDING-DIMENSION-3][BF-ANTENNA-4][VHT160][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7] ieee80211ax=1 he_oper_chwidth=2 he_oper_centr_freq_seg0_idx=acs_survey he_su_beamformer=1 he_su_beamformee=1 he_mu_beamformer=1 he_bss_color=128 he_spr_sr_control=3 he_default_pe_duration=4 he_rts_threshold=1023 he_mu_edca_qos_info_param_count=0 he_mu_edca_qos_info_q_ack=0 he_mu_edca_qos_info_queue_request=0 he_mu_edca_qos_info_txop_req
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.028423] br-lan: port 7(phy0.2-ap0) entered blocking state
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.034184] br-lan: port 7(phy0.2-ap0) entered disabled state
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.039994] mt7996e 0000:01:00.0 phy0.2-ap0: entered allmulticast mode
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.046659] mt7996e 0000:01:00.0 phy0.2-ap0: entered promiscuous mode
Sun Dec 29 17:56:45 2024 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.168223] br-lan: port 7(phy0.2-ap0) entered disabled state
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.174113] mt7996e 0000:01:00.0 phy0.2-ap0: left allmulticast mode
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.180389] mt7996e 0000:01:00.0 phy0.2-ap0: left promiscuous mode
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.186604] br-lan: port 7(phy0.2-ap0) entered disabled state
Sun Dec 29 17:56:45 2024 daemon.notice hostapd: nl80211: Failed to remove interface phy0.2-ap0 from bridge br-lan: Invalid argument
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.320516] br-lan: port 7(phy0.2-ap0) entered blocking state
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.326267] br-lan: port 7(phy0.2-ap0) entered disabled state
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.332042] mt7996e 0000:01:00.0 phy0.2-ap0: entered allmulticast mode
Sun Dec 29 17:56:45 2024 daemon.err hostapd: ACS: Failed to request initial scan
Sun Dec 29 17:56:45 2024 daemon.warn hostapd: phy0.2-ap0: IEEE 802.11 Configured channel (0) or frequency (0) (secondary_channel=1) not found from the channel list of the current mode (2) IEEE 802.11a
Sun Dec 29 17:56:45 2024 daemon.warn hostapd: phy0.2-ap0: IEEE 802.11 Hardware does not support configured channel
Sun Dec 29 17:56:45 2024 daemon.err hostapd: Could not select hw_mode and channel. (-3)
Sun Dec 29 17:56:45 2024 daemon.notice hostapd: phy0.2-ap0: interface state UNINITIALIZED->DISABLED
Sun Dec 29 17:56:45 2024 daemon.notice hostapd: phy0.2-ap0: AP-DISABLED
Sun Dec 29 17:56:45 2024 daemon.err hostapd: phy0.2-ap0: Unable to setup interface.
Sun Dec 29 17:56:45 2024 daemon.notice hostapd: nl80211: deinit ifname=phy0.2-ap0 disabled_11b_rates=0
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.338672] mt7996e 0000:01:00.0 phy0.2-ap0: entered promiscuous mode
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.345501] mt7996e 0000:01:00.0 phy0.2-ap0: left allmulticast mode
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.351779] mt7996e 0000:01:00.0 phy0.2-ap0: left promiscuous mode
Sun Dec 29 17:56:45 2024 kern.info kernel: [ 1581.357990] br-lan: port 7(phy0.2-ap0) entered disabled state
Sun Dec 29 17:56:45 2024 daemon.err hostapd: rmdir[ctrl_interface=/var/run/hostapd]: Permission denied

I have no idea why its complaining about “variable data not found” but i could imagine that this is causing it. I use luci, so there should be no “invalid” configs possible. Anyone an idea whats wrong?

edit: found the problem, switching to 6ghz did it. seems only affected when using 5ghz on wifi7

ethX renaming seem to be these commits:

bpi-r3: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=84fc59c0d5285a0a0fe50e3cb2a85f6224362c55

bpi-r4: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=cd8dcfef378044a1687adfa3738f01f9a9622baf

with this doing the renaming: git.openwrt.org Git - openwrt/openwrt.git/commit

for wifi issue i guess MLO was merged and this imho only allows beacons for wifi7 on 5GHz, so 5GHz and 6GHz bands are merged together

1 Like

Thanks for the warning. This will break my config as well. But at least those have proper names now and we can rename them easily as well, if we want to, in the dts. Won’t work for my image Builder though.