Need some help, WRT32X Wireless not associated

Hello all

I've been using OpenWrt for 3 or 4 years now on a wrt1900acs. Just bought a wrt32x to add to my network as an additional AP. My old WRT1900acs is used as a plain AP too.

Both the 1900acs and the 32x are running the same OpenWrt build. It's the latest Davidc502 build :
OpenWrt SNAPSHOT r13342-e35e40ad82 / LuCI Master git-20.144.63033-62ed4e6

My wifi network is made of 2 SSID, a 'regular' one and a 'guest' that is on it's own vlan. That config has been running fine for years on my 1900acs.

I am trying to configure the same wifi settings on the wrt32x but can't make it work

I am able to configure the 'regular' ssid on both radio and get it to work fine but as soon as I add the 'guest' ssid I cannot get it to work, it will stay in "wireless not associated" state. I have correctly created the vlan on the switch and created an interface for the vlan prior to creating the guest ssid.

I am doing the configuration from luci on a fresh flash.
The wrt1900acs has been configured the same way via luci without issue on an older build and has been updated with newer build from there.

I just cant put my finger on the issue. any help or hint would appreciated.

here what I have in the system logs when creating the guest ssid and try to enable it:

Thu Dec 24 10:18:17 2020 daemon.notice hostapd: Remove interface 'wlan0'
Thu Dec 24 10:18:17 2020 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLED
Thu Dec 24 10:18:17 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Thu Dec 24 10:18:17 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Thu Dec 24 10:18:17 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Thu Dec 24 10:18:17 2020 kern.info kernel: [ 2201.276932] device wlan0 left promiscuous mode
Thu Dec 24 10:18:17 2020 kern.info kernel: [ 2201.281470] br-lan: port 2(wlan0) entered disabled state
Thu Dec 24 10:18:17 2020 kern.debug kernel: [ 2201.326179] ieee80211 phy0: change: 0x40
Thu Dec 24 10:18:17 2020 kern.debug kernel: [ 2201.424939] ieee80211 phy0: change: 0x100
Thu Dec 24 10:18:17 2020 daemon.notice netifd: Network device 'wlan0' link is down
Thu Dec 24 10:18:17 2020 daemon.info avahi-daemon[3117]: Interface wlan0.IPv6 no longer relevant for mDNS.
Thu Dec 24 10:18:17 2020 daemon.info avahi-daemon[3117]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::6238:e0ff:fec7:b8ea.
Thu Dec 24 10:18:17 2020 daemon.info avahi-daemon[3117]: Withdrawing address record for fe80::6238:e0ff:fec7:b8ea on wlan0.
Thu Dec 24 10:18:17 2020 daemon.notice hostapd: Remove interface 'wlan1'
Thu Dec 24 10:18:17 2020 daemon.notice hostapd: wlan1: interface state ENABLED->DISABLED
Thu Dec 24 10:18:17 2020 daemon.notice hostapd: wlan1: AP-DISABLED
Thu Dec 24 10:18:17 2020 daemon.notice hostapd: wlan1: CTRL-EVENT-TERMINATING
Thu Dec 24 10:18:17 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Thu Dec 24 10:18:17 2020 kern.info kernel: [ 2201.637074] device wlan1 left promiscuous mode
Thu Dec 24 10:18:17 2020 kern.info kernel: [ 2201.641596] br-lan: port 3(wlan1) entered disabled state
Thu Dec 24 10:18:17 2020 kern.debug kernel: [ 2201.696286] ieee80211 phy1: change: 0x40
Thu Dec 24 10:18:17 2020 kern.debug kernel: [ 2201.779073] ieee80211 phy1: change: 0x100
Thu Dec 24 10:18:17 2020 daemon.info avahi-daemon[3117]: Interface wlan1.IPv6 no longer relevant for mDNS.
Thu Dec 24 10:18:17 2020 daemon.info avahi-daemon[3117]: Leaving mDNS multicast group on interface wlan1.IPv6 with address fe80::6238:e0ff:fec7:b8e9.
Thu Dec 24 10:18:17 2020 daemon.notice netifd: Network device 'wlan1' link is down
Thu Dec 24 10:18:17 2020 daemon.info avahi-daemon[3117]: Withdrawing address record for fe80::6238:e0ff:fec7:b8e9 on wlan1.
Thu Dec 24 10:18:17 2020 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Thu Dec 24 10:18:17 2020 daemon.err hostapd: Duplicate BSSID 60:38:e0:c7:b8:ea on interface 'wlan0-1' and 'wlan0'.
Thu Dec 24 10:18:17 2020 daemon.err hostapd: 1 errors found in configuration file '/var/run/hostapd-phy0.conf'
Thu Dec 24 10:18:17 2020 daemon.err hostapd: Failed to set up interface with /var/run/hostapd-phy0.conf
Thu Dec 24 10:18:17 2020 daemon.notice netifd: radio0 (12572): Command failed: Invalid argument
Thu Dec 24 10:18:17 2020 daemon.notice netifd: radio0 (12572): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process  path (/proc/exe)
Thu Dec 24 10:18:17 2020 daemon.notice netifd: radio0 (12572): Command failed: Invalid argument
Thu Dec 24 10:18:19 2020 kern.debug kernel: [ 2203.276547] ieee80211 phy0: change: 0xffffffff
Thu Dec 24 10:18:19 2020 kern.info kernel: [ 2203.406594] br-lan: port 2(wlan0) entered blocking state
Thu Dec 24 10:18:19 2020 kern.info kernel: [ 2203.411951] br-lan: port 2(wlan0) entered disabled state
Thu Dec 24 10:18:19 2020 kern.info kernel: [ 2203.417407] device wlan0 entered promiscuous mode
Thu Dec 24 10:18:19 2020 kern.info kernel: [ 2203.422214] br-lan: port 2(wlan0) entered blocking state
Thu Dec 24 10:18:19 2020 kern.info kernel: [ 2203.427550] br-lan: port 2(wlan0) entered forwarding state
Thu Dec 24 10:18:19 2020 kern.info kernel: [ 2203.507854] br-lan: port 2(wlan0) entered disabled state

this is the /etc/config/wireless from the wrt32x:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '36'
        option hwmode '11a'
        option path 'soc/soc:pcie/pci0000:00/0000:00:01.0/0000:01:00.0'
        option htmode 'VHT80'
        option country 'CA'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option macaddr '60:38:e0:c7:b8:ea'
        option ssid 'magenois.net'
        option encryption 'psk2+ccmp'
        option key '**********'

config wifi-device 'radio1'
        option type 'mac80211'
        option hwmode '11g'
        option path 'soc/soc:pcie/pci0000:00/0000:00:02.0/0000:02:00.0'
        option htmode 'HT20'
        option country 'CA'
        option channel '1'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option macaddr '60:38:e0:c7:b8:e9'
        option ssid 'magenois.net'
        option encryption 'psk2+ccmp'
        option key '*********'

config wifi-iface 'wifinet2'
        option device 'radio0'
        option mode 'ap'
        option ssid 'magenois.net-guest'
        option encryption 'psk2+ccmp'
        option key '**********'
        option network 'guestlan'

/etc/config/network:

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd19:beda:b70e::/48'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0.1'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.1.9'
        option gateway '192.168.1.1'
        list dns '192.168.1.1'

config interface 'wan'
        option ifname 'eth1.2'
        option proto 'dhcp'

config interface 'wan6'
        option ifname 'eth1.2'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '5t 3 2 1 0'
        option vid '1'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '6t 4'
        option vid '2'

config switch_vlan
        option device 'switch0'
        option vlan '3'
        option ports '5t 3t'
        option vid '50'

config interface 'guestlan'
        option proto 'static'
        option type 'bridge'
        option ifname 'eth0.50'
        option ipaddr '192.168.50.9'
        option netmask '255.255.255.0'
        option gateway '192.168.50.1'

/var/run/hostapd-phy0.conf:

driver=nl80211
logger_syslog=127
logger_syslog_level=2
logger_stdout=127
logger_stdout_level=2
country_code=CA
ieee80211d=1
ieee80211h=1
hw_mode=a
beacon_int=100
dtim_period=2
channel=36


tx_queue_data2_burst=2.0
ieee80211n=1
ht_coex=0
ht_capab=[HT40+][LDPC][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935][DSSS_CCK-40]
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42
ieee80211ac=1
vht_capab=[RXLDPC][SHORT-GI-80][SHORT-GI-160][SU-BEAMFORMER][SU-BEAMFORMEE][MU-BEAMFORMER][MU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][VHT160][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7]

radio_config_id=223932c3ef17474af22d5f1af3cc7139
interface=wlan0
ctrl_interface=/var/run/hostapd
ap_isolate=1
bss_load_update_period=60
chan_util_avg_period=600
disassoc_low_ack=1
preamble=1
wmm_enabled=1
ignore_broadcast_ssid=0
uapsd_advertisement_enabled=1
utf8_ssid=1
multi_ap=0
wpa_passphrase=************
auth_algs=1
wpa=2
wpa_pairwise=CCMP
ssid=magenois.net
bridge=br-lan
wpa_disable_eapol_key_retries=0
wpa_key_mgmt=WPA-PSK
okc=0
disable_pmksa_caching=1
config_id=90367488e6c0f9fdb69e12c2c4447057
bssid=60:38:e0:c7:b8:ea


bss=wlan0-1
ctrl_interface=/var/run/hostapd
ap_isolate=1
bss_load_update_period=60
chan_util_avg_period=600
disassoc_low_ack=1
preamble=1
wmm_enabled=1
ignore_broadcast_ssid=0
uapsd_advertisement_enabled=1
utf8_ssid=1
multi_ap=0
wpa_passphrase=************
auth_algs=1
wpa=2
wpa_pairwise=CCMP
ssid=magenois.net-guest
bridge=br-guestlan
wpa_disable_eapol_key_retries=0
wpa_key_mgmt=WPA-PSK
okc=0
disable_pmksa_caching=1
config_id=ae15f5f7e110c8f8faf291359b7fb296
bssid=60:38:e0:c7:b8:ea

Maybe this...

I know it's probably this, however I dont know on how to fix it. BSSID were always created correctly for me when configuring from luci in the past.

How do I craft a different BSSID for the 'guest' wlan? I derive it from the MAC address I suppose?

For the records. I found the issue.

it's a bug in /lib/netifd/wireless/mac80211.sh in this particular build.

bug is documented here : FS#3138 : mac802.11sh commit broken and causing one radio to drop (openwrt.org)

And this thread has a workaround : WRT1900ACSv2 Only One WiFi Radio is Staying Up

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.