the 3rd wifi antenna does not work
log: hostapd.add_iface failed for phy phy0.2 ifname=phy0.2-ap0
Details, Watson.
- there is no such thing as the Banana Pi BPI-R4, that is just a devboard like setting - with a variety of WLAN cards to (potentially) add in, we have no idea which you chose.
- a WLAN card is not an antenna and not to be called as such
- we have no idea what kind of OpenWrt you are using
- you haven't provided any kind of configurations or logs to go by
As is, you could just as well tell us that your Mercedes car is broken, could be a 100 year old oldtimer, a taxi, an F1 car, a AMG Mercedes luxury sports car or a lorry, nor do we have the slightest idea what might be broken - but at least it's yellow.
I have OpenWrt 24.10.1
The wifi module is BPI-R4-NIC-BE14
The chip in module are MT7995AV + MT7976CN + MT7977IAN
In OpenWrt is viewed MT7996E
In log is only this for radio2: 'daemon.notice hostapd: hostapd.add_iface failed for phy phy0.2 ifname=phy0.2-ap0'
That single line isn't helpful. Post the full log output
logread|grep hostapd
And please provide your wireless config (/etc/config/wireless)
logread|grep hostapd :
Mon May 5 16:07:51 2025 daemon.notice hostapd: phy0.0-ap0: ACS-STARTED
Mon May 5 16:07:51 2025 daemon.notice hostapd: Set new config for phy phy0.1: /var/run/hostapd-phy0.1.conf
Mon May 5 16:07:51 2025 daemon.notice hostapd: Restart interface for phy phy0.1
Mon May 5 16:07:52 2025 daemon.notice hostapd: Configuration file: data: driver=nl80211 logger_syslog=127 logger_syslog_level=2 logger_stdout=127 logger_stdout_level=2 country_code=CH ieee80211d=1 ieee80211h=1 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=1 vht_oper_centr_freq_seg0_idx=-6 vht_capab=[RXLDPC][SHORT-GI-80][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][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7] ieee80211ax=1 he_oper_chwidth=1 he_oper_centr_freq_seg0_idx=-6 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
Mon May 5 16:07:52 2025 daemon.notice hostapd: phy0.1-ap0: interface state UNINITIALIZED->COUNTRY_UPDATE
Mon May 5 16:07:52 2025 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit
Mon May 5 16:07:52 2025 daemon.notice hostapd: nl80211: Failed to remove interface phy0.1-ap0 from bridge br-lan: Invalid argument
Mon May 5 16:07:52 2025 daemon.notice hostapd: phy0.1-ap0: interface state COUNTRY_UPDATE->ACS
Mon May 5 16:07:52 2025 daemon.notice hostapd: phy0.1-ap0: ACS-STARTED
Mon May 5 16:07:52 2025 daemon.notice hostapd: nl80211: Failed to remove interface phy0.0-ap0 from bridge br-lan: Invalid argument
Mon May 5 16:07:52 2025 daemon.notice hostapd: nl80211: Failed to remove interface phy0.1-ap0 from bridge br-lan: Invalid argument
Mon May 5 16:07:53 2025 daemon.notice hostapd: nl80211: Failed to remove interface phy0.0-ap0 from bridge br-lan: Invalid argument
Mon May 5 16:07:53 2025 daemon.notice hostapd: ACS: Survey for freq 2422 is missing noise floor
Mon May 5 16:07:53 2025 daemon.notice hostapd: phy0.0-ap0: ACS-COMPLETED freq=2437 channel=6
Mon May 5 16:07:53 2025 daemon.notice hostapd: phy0.0-ap0: interface state ACS->HT_SCAN
Mon May 5 16:07:54 2025 daemon.notice hostapd: nl80211: Failed to remove interface phy0.0-ap0 from bridge br-lan: Invalid argument
Mon May 5 16:07:54 2025 daemon.notice hostapd: ACS: Survey for freq 5200 is missing noise floor
Mon May 5 16:07:54 2025 daemon.notice hostapd: phy0.1-ap0: ACS-COMPLETED freq=5260 channel=52
Mon May 5 16:07:54 2025 daemon.notice hostapd: phy0.1-ap0: interface state ACS->HT_SCAN
Mon May 5 16:07:54 2025 daemon.notice hostapd: phy0.0-ap0: interface state HT_SCAN->ENABLED
Mon May 5 16:07:54 2025 daemon.notice hostapd: phy0.0-ap0: AP-ENABLED
Mon May 5 16:07:54 2025 daemon.notice hostapd: phy0.1-ap0: interface state HT_SCAN->DFS
Mon May 5 16:07:54 2025 daemon.notice hostapd: phy0.1-ap0: DFS-CAC-START freq=5260 chan=52 sec_chan=1, width=1, seg0=58, seg1=0, cac_time=60s
Mon May 5 16:09:11 2025 daemon.info hostapd: phy0.0-ap0: STA 30:c9:ab:6c:de:0a IEEE 802.11: authenticated
Mon May 5 16:09:11 2025 daemon.info hostapd: phy0.0-ap0: STA 30:c9:ab:6c:de:0a IEEE 802.11: associated (aid 1)
Mon May 5 16:09:11 2025 daemon.notice hostapd: phy0.0-ap0: AP-STA-CONNECTED 30:c9:ab:6c:de:0a auth_alg=open
Mon May 5 16:09:11 2025 daemon.info hostapd: phy0.0-ap0: STA 30:c9:ab:6c:de:0a WPA: pairwise key handshake completed (RSN)
Mon May 5 16:09:11 2025 daemon.notice hostapd: phy0.0-ap0: EAPOL-4WAY-HS-COMPLETED 30:c9:ab:6c:de:0a
Mon May 5 16:09:49 2025 daemon.info hostapd: phy0.0-ap0: STA 28:16:a8:68:b4:de IEEE 802.11: authenticated
Mon May 5 16:09:49 2025 daemon.info hostapd: phy0.0-ap0: STA 28:16:a8:68:b4:de IEEE 802.11: associated (aid 2)
Mon May 5 16:09:49 2025 daemon.notice hostapd: phy0.0-ap0: AP-STA-CONNECTED 28:16:a8:68:b4:de auth_alg=open
Mon May 5 16:09:49 2025 daemon.info hostapd: phy0.0-ap0: STA 28:16:a8:68:b4:de WPA: pairwise key handshake completed (RSN)
Mon May 5 16:09:49 2025 daemon.notice hostapd: phy0.0-ap0: EAPOL-4WAY-HS-COMPLETED 28:16:a8:68:b4:de
Mon May 5 16:09:55 2025 daemon.info hostapd: phy0.0-ap0: STA b8:8a:60:95:fa:b5 IEEE 802.11: authenticated
Mon May 5 16:09:55 2025 daemon.info hostapd: phy0.0-ap0: STA b8:8a:60:95:fa:b5 IEEE 802.11: associated (aid 3)
Mon May 5 16:09:55 2025 daemon.notice hostapd: phy0.0-ap0: AP-STA-CONNECTED b8:8a:60:95:fa:b5 auth_alg=open
Mon May 5 16:09:55 2025 daemon.info hostapd: phy0.0-ap0: STA b8:8a:60:95:fa:b5 WPA: pairwise key handshake completed (RSN)
Mon May 5 16:09:55 2025 daemon.notice hostapd: phy0.0-ap0: EAPOL-4WAY-HS-COMPLETED b8:8a:60:95:fa:b5
Mon May 5 16:10:13 2025 daemon.notice hostapd: phy0.1-ap0: DFS-CAC-COMPLETED success=1 freq=5260 ht_enabled=0 chan_offset=0 chan_width=3 cf1=5290 cf2=0 radar_detected=0
Mon May 5 16:10:13 2025 daemon.notice hostapd: phy0.1-ap0: interface state DFS->ENABLED
Mon May 5 16:10:13 2025 daemon.notice hostapd: phy0.1-ap0: AP-ENABLED
Mon May 5 16:11:27 2025 daemon.notice hostapd: phy0.0-ap0: AP-STA-DISCONNECTED 28:16:a8:68:b4:de
Mon May 5 16:11:27 2025 daemon.info hostapd: phy0.1-ap0: STA 28:16:a8:68:b4:de IEEE 802.11: authenticated
Mon May 5 16:11:27 2025 daemon.info hostapd: phy0.1-ap0: STA 28:16:a8:68:b4:de IEEE 802.11: associated (aid 1)
Mon May 5 16:11:27 2025 daemon.notice hostapd: phy0.0-ap0: Prune association for 28:16:a8:68:b4:de
Mon May 5 16:11:27 2025 daemon.notice hostapd: phy0.1-ap0: AP-STA-CONNECTED 28:16:a8:68:b4:de auth_alg=open
Mon May 5 16:11:27 2025 daemon.info hostapd: phy0.1-ap0: STA 28:16:a8:68:b4:de WPA: pairwise key handshake completed (RSN)
Mon May 5 16:11:27 2025 daemon.notice hostapd: phy0.1-ap0: EAPOL-4WAY-HS-COMPLETED 28:16:a8:68:b4:de
Mon May 5 16:11:39 2025 daemon.notice hostapd: phy0.0-ap0: AP-STA-DISCONNECTED b8:8a:60:95:fa:b5
Mon May 5 16:11:41 2025 daemon.info hostapd: phy0.1-ap0: STA b8:8a:60:95:fa:b5 IEEE 802.11: authenticated
Mon May 5 16:11:41 2025 daemon.info hostapd: phy0.1-ap0: STA b8:8a:60:95:fa:b5 IEEE 802.11: associated (aid 2)
Mon May 5 16:11:41 2025 daemon.notice hostapd: phy0.0-ap0: Prune association for b8:8a:60:95:fa:b5
Mon May 5 16:11:41 2025 daemon.notice hostapd: phy0.1-ap0: STA-OPMODE-SMPS-MODE-CHANGED b8:8a:60:95:fa:b5 off
Mon May 5 16:11:41 2025 daemon.notice hostapd: phy0.1-ap0: AP-STA-CONNECTED b8:8a:60:95:fa:b5 auth_alg=open
Mon May 5 16:11:41 2025 daemon.info hostapd: phy0.1-ap0: STA b8:8a:60:95:fa:b5 WPA: pairwise key handshake completed (RSN)
Mon May 5 16:11:41 2025 daemon.notice hostapd: phy0.1-ap0: EAPOL-4WAY-HS-COMPLETED b8:8a:60:95:fa:b5
Wiress config :
config wifi-device 'radio0'
option type 'mac80211'
option path 'soc/11300000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
option radio '0'
option band '2g'
option channel 'auto'
option cell_density '0'
option htmode 'EHT40'
option country 'CH'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'BPE'
option encryption 'psk-mixed'
option key '********'
config wifi-device 'radio1'
option type 'mac80211'
option path 'soc/11300000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
option radio '1'
option band '5g'
option channel 'auto'
option htmode 'EHT80'
option cell_density '0'
option country 'CH'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'BPE'
option encryption 'sae-mixed'
option key '********'
option ocv '0'
config wifi-device 'radio2'
option type 'mac80211'
option path 'soc/11300000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
option radio '2'
option cell_density '0'
option band '5g'
option channel 'auto'
option htmode 'EHT80'
option country 'CH'
config wifi-iface 'default_radio2'
option device 'radio2'
option network 'lan'
option mode 'ap'
option ssid 'Ctrl2'
option encryption 'sae-mixed'
option key '********'
option ocv '0'
option encryption 'sae-mixed'
is invalid for 6 Ghz, you need to set "sae"
I tested all the wifi configurations, it remains disabled