Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main: wifi-mesh-only connected node does not set up mesh interfaces #3392

Closed
maurerle opened this issue Dec 14, 2024 · 3 comments
Closed

main: wifi-mesh-only connected node does not set up mesh interfaces #3392

maurerle opened this issue Dec 14, 2024 · 3 comments

Comments

@maurerle
Copy link
Member

maurerle commented Dec 14, 2024

Bug report

What is the problem?

mesh interfaces are not created.

It seems that this is related to hostapd: Line 61: invalid bssid item, though I do not really know why this exists.

issueing wifi does not help.
removing /etc/config/wireless and issueing gluon-reconfigure and wifi does not help

logread:

Sat Dec 14 12:44:09 2024 daemon.warn dnsmasq[3455]: no servers found in /var/gluon/wan-dnsmasq/resolv.conf, will retry
Sat Dec 14 12:44:09 2024 daemon.notice hostapd: Set new config for phy phy0:
Sat Dec 14 12:44:09 2024 daemon.notice hostapd: Set new config for phy phy1:
Sat Dec 14 12:44:09 2024 daemon.notice netifd: radio0 (2882): Command failed: Not found
Sat Dec 14 12:44:10 2024 daemon.notice netifd: radio1 (2883): Command failed: Not found
Sat Dec 14 12:44:10 2024 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Sat Dec 14 12:44:10 2024 daemon.notice hostapd: Set new config for phy phy0:
Sat Dec 14 12:44:10 2024 daemon.info dnsmasq[1]: started, version 2.90 cachesize 150
Sat Dec 14 12:44:10 2024 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset no-auth cryptohash DNSSEC loop-detect inotify dumpfile
Sat Dec 14 12:44:10 2024 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Sat Dec 14 12:44:10 2024 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Sat Dec 14 12:44:10 2024 daemon.warn dnsmasq[1]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sat Dec 14 12:44:10 2024 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Sat Dec 14 12:44:10 2024 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 names
Sat Dec 14 12:44:10 2024 daemon.err usbmuxd[3661]: [12:44:10.827][3] usbmuxd v2023.10.11~360619c5 starting up
Sat Dec 14 12:44:10 2024 daemon.err usbmuxd[3661]: [12:44:10.829][3] Using libusb 1.0.27
Sat Dec 14 12:44:10 2024 daemon.err usbmuxd[3661]: [12:44:10.831][0] libusb_init failed: LIBUSB_ERROR_OTHER
Sat Dec 14 12:44:10 2024 kern.crit usbmuxd[3897]: [0] libusb_init failed: LIBUSB_ERROR_OTHER
Sat Dec 14 12:44:11 2024 daemon.notice hostapd: Set new config for phy phy1: /var/run/hostapd-phy1.conf
Sat Dec 14 12:44:11 2024 daemon.notice hostapd: Restart interface for phy phy1
Sat Dec 14 12:44:11 2024 daemon.notice netifd: radio0 (2882): command failed: No such device (-19)
Sat Dec 14 12:44:11 2024 daemon.notice netifd: Interface 'client' is now up
Sat Dec 14 12:44:12 2024 daemon.notice hostapd: Configuration file: data: driver=nl80211 logger_syslog=127 logger_syslog_level=2 logger_stdout=127 logger_stdout_level=2 country_code=DE ieee80211d=1 ieee80211h=1 hw_mode=a beacon_int=100 stationary_ap=1 chanlist=44 noscan=1 tx_queue_data2_burst=2.0 #num_global_macaddr=1 ieee80211n=1 ht_coex=0 ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935] ieee80211ac=1 vht_oper_chwidth=0 vht_oper_centr_freq_seg0_idx= 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-2][BF-ANTENNA-2][MAX-MPDU-7991][MAX-A-MPDU-LEN-EXP7] ieee80211ax=1 he_oper_chwidth=0 he_oper_centr_freq_seg0_idx= 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_reque
Sat Dec 14 12:44:12 2024 daemon.err hostapd: Line 61: invalid bssid item
Sat Dec 14 12:44:12 2024 daemon.err hostapd: 1 errors found in configuration file '<inline>'
Sat Dec 14 12:44:12 2024 daemon.err hostapd: Failed to set up interface with data: driver=nl80211 logger_syslog=127 logger_syslog_level=2 logger_stdout=127 logger_stdout_level=2 country_code=DE ieee80211d=1 ieee80211h=1 hw_mode=a beacon_int=100 stationary_ap=1 chanlist=44 noscan=1 tx_queue_data2_burst=2.0 #num_global_macaddr=1 ieee80211n=1 ht_coex=0 ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935] ieee80211ac=1 vht_oper_chwidth=0 vht_oper_centr_freq_seg0_idx= 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-2][BF-ANTENNA-2][MAX-MPDU-7991][MAX-A-MPDU-LEN-EXP7] ieee80211ax=1 he_oper_chwidth=0 he_oper_centr_freq_seg0_idx= 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_inf
Sat Dec 14 12:44:12 2024 daemon.notice hostapd: hostapd.add_iface failed for phy phy1 ifname=client1
Sat Dec 14 12:44:12 2024 daemon.notice netifd: radio0 (2882): command failed: No such device (-19)
Sat Dec 14 12:44:12 2024 user.notice firewall: Reloading firewall due to ifup of client (br-client)

What is the expected behaviour?

iwinfo should show all mesh interfaces as well, mesh should be working

Gluon Version:

main with applied patch from #3387

Site Configuration:

https://github.com/ffac/site/tree/v2025.1.x

Custom patches:

see site

@maurerle
Copy link
Member Author

This is cat /etc/config/wireless:

config wifi-device 'radio0'
	option type 'mac80211'
	option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
	option channel '11'
	option band '2g'
	option htmode 'HE20'
	option country 'DE'
	option legacy_rates '0'

config wifi-device 'radio1'
	option type 'mac80211'
	option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0+1'
	option channel '44'
	option band '5g'
	option htmode 'HE20'
	option country 'DE'

config wifi-iface 'mesh_radio0'
	option ifname 'mesh0'
	option network 'mesh_radio0'
	option device 'radio0'
	option mesh_fwding '0'
	option mesh_id 'ffac-bat4-mesh'
	option mcast_rate '12000'
	option mode 'mesh'
	option disabled '0'
	option macaddr '0a:a2:8d:fb:249:59'

config wifi-iface 'mesh_radio1'
	option ifname 'mesh1'
	option network 'mesh_radio1'
	option device 'radio1'
	option mesh_fwding '0'
	option mesh_id 'ffac-bat4-mesh'
	option mcast_rate '12000'
	option mode 'mesh'
	option disabled '0'
	option macaddr '0a:a2:8d:fb:249:5d'

config wifi-iface 'client_radio0'
	option ifname 'client0'
	option network 'client'
	option disabled '0'
	option device 'radio0'
	option mode 'ap'
	option macaddr '0a:a2:8d:fb:249:58'
	option ssid 'Freifunk'

config wifi-iface 'client_radio1'
	option ifname 'client1'
	option network 'client'
	option disabled '0'
	option device 'radio1'
	option mode 'ap'
	option macaddr '0a:a2:8d:fb:249:5c'
	option ssid 'Freifunk'

I don't know why this failes for mesh here

@maurerle
Copy link
Member Author

maurerle commented Dec 14, 2024

Copying the wifi mesh interface mac addresses of my working node:
and copying it to /etc/config/wireless and issuing wifi works fine.
So it seems to be a special case for these mac addresses:
option macaddr '0a:a2:8d:fb:249:5d'
option macaddr '0a:a2:8d:fb:249:59'

@maurerle
Copy link
Member Author

Found it.

with patch #3357 the overflow creates:

lua -e 'print(require("gluon.util").generate_mac(1))'
0a:a2:8d:fb:249:59

while without this patch:

lua -e 'print(require("gluon.util").generate_mac(1))'
0a:a2:8d:fb:f9:59

so this is related to #3357 and not an issue on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant