Hi, I tried to set an SSID to do a VLAN per passphrase (as detailed here) however clients can connect but get no connectivity.
I see the following errors in the log:
Sat Oct 21 14:53:20 2023 daemon.err hostapd: VLAN: br_addif: ioctl[SIOCDEVPRIVATE,BRCTL_ADD_IF] failed for br_name=br-switch.20 if_name=wlan.20: Not supported
Sat Oct 21 14:53:20 2023 daemon.err hostapd: VLAN: br_addif: ioctl[SIOCDEVPRIVATE,BRCTL_ADD_IF] failed for br_name=br-switch.10 if_name=wlan.10: Not supported
Also the following
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.583479] ------------[ cut here ]------------
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.583795] WARNING: CPU: 3 PID: 1130 at backports-6.1.24/net/mac80211/driver-ops.h:611 0xbf1233ac [mac80211@5b630eb6+0x7f000]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.587484] wlan.20: Failed check-sdata-in-driver check, flags: 0x0
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.599126] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath10k_pci ath10k_core ath pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c hwmon crc_ccitt compat ledtrig_usbport sha512_arm ghash_arm_ce cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom gpio_button_hotplug crc32c_generic
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.644747] CPU: 3 PID: 1130 Comm: hostapd Not tainted 5.15.134 #0
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.666901] Hardware name: Generic DT based system
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.673157] Function entered at [<c030d3a8>] from [<c0309784>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.677928] Function entered at [<c0309784>] from [<c060cd64>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.683744] Function entered at [<c060cd64>] from [<c0322744>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.689559] Function entered at [<c0322744>] from [<c0322820>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.695375] Function entered at [<c0322820>] from [<bf1233ac>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.701208] Function entered at [<bf1233ac>] from [<bf0ef10c>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.707010] Function entered at [<bf0ef10c>] from [<bf0ef474>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.712825] Function entered at [<bf0ef474>] from [<bf0b30b4>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.718643] Function entered at [<bf0b30b4>] from [<c084cd78>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.724456] Function entered at [<c084cd78>] from [<c084be48>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.730273] Function entered at [<c084be48>] from [<c084c484>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.736086] Function entered at [<c084c484>] from [<c084b510>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.741902] Function entered at [<c084b510>] from [<c084b7e4>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.747718] Function entered at [<c084b7e4>] from [<c07b5918>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.753536] Function entered at [<c07b5918>] from [<c07b74ec>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.759352] Function entered at [<c07b74ec>] from [<c07b7654>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.765167] Function entered at [<c07b7654>] from [<c0300040>]
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.770981] Exception stack(0xc3151fa8 to 0xc3151ff0)
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.776803] 1fa0: 00000000 00000000 0000000e bec0e138 00000000 00000000
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.781930] 1fc0: 00000000 00000000 01d02d78 00000128 00000004 bec0e180 00000001 00000000
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.790085] 1fe0: bec0e0e0 bec0e0d0 b6f1cb9c b6f1c00c
Sat Oct 21 15:14:43 2023 kern.warn kernel: [ 1384.798330] ---[ end trace 867636191caed713 ]---
Network config is as follows:
config device
option name 'br-switch'
option type 'bridge'
option igmp_snooping '1'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'wan'
config interface 'foo'
option device 'br-switch.10'
option proto 'dhcp'
option delegate '0'
config interface 'bar'
option device 'br-switch.20'
option proto 'dhcp'
option delegate '0'
config bridge-vlan
option device 'br-switch'
option vlan '10'
list ports 'lan1:u'
list ports 'lan2:u'
list ports 'wan:t'
config bridge-vlan
option device 'br-switch'
option vlan '20'
list ports 'lan3:u'
list ports 'lan4:u'
list ports 'wan:t'
Wired connectivity works fine, and I can see traffic over the two VLANs, and brctl shows
the bridge and the 'lan' ports.
Now the Wireless interface part.
config wifi-iface 'wifinet0'
option device 'radio2'
option mode 'ap'
option ssid 'TEST'
option encryption 'psk2'
option wpa_psk_file '/etc/hostapd.wpa_psk'
option vlan_file '/etc/hostapd.vlan'
option vlan_bridge 'null'
option dynamic_vlan '1'
with corresponding /etc/hostapd.vlan:
10 wlan.10 br-switch.10
20 wlan.20 br-switch.20
and /etc/hostapd.wpa_psk:
vlanid=10 00:00:00:00:00:00 foosecret
vlanid=20 00:00:00:00:00:00 barsecret
Device is a Linksys EA8300 running OpenWrt 23.05.0 r23497-6637af95aa with wpad-wolfssl
installed instead of wpad-basic-mbedtls
.
Any thoughts what's going wrong?