openwrt / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
20.5k stars 10.56k forks source link

hostapd: FT over DS leads into nl80211: NL80211_ATTR_STA_VLAN error #16880

Open NilsRo opened 2 weeks ago

NilsRo commented 2 weeks ago

Describe the bug

Technically FT over DS should be better as the src AP connects to the target AP over LAN. https://www.cisco.com/c/dam/en/us/td/docs/wireless/controller/technotes/80211r-ft/b-80211r-dg.html

Activating this in OpenWRT leads into an nl80211: NL80211_ATTR_STA_VLAN error but it seems working mostly. So I do not now if this error is a false-positive.

I tried also to set the following to move the preauth to another interface but it does not change the behavior. This error is also mentioned mostly in OpenWRT forum that FT over DS is broken.

        option rsn_preauth '1'
        option rsn_preauth_interface 'eth1.1'
Thu Nov  7 09:13:14 2024 daemon.err hostapd: nl80211: kernel reports: key addition failed
Thu Nov  7 09:13:14 2024 daemon.err hostapd: nl80211: NL80211_ATTR_STA_VLAN (addr=8c:7a:aa:51:5c:18 ifname=wl1-ap0 vlan_id=0) failed: -2 (No such file or directory)
Thu Nov  7 09:13:14 2024 daemon.info hostapd: wl1-ap0: STA 8c:7a:aa:51:5c:18 IEEE 802.11: associated (aid 1)
Thu Nov  7 09:13:14 2024 daemon.notice hostapd: wl1-ap0: AP-STA-CONNECTED 8c:7a:aa:51:5c:18 auth_alg=ft

OpenWrt version

r23809-234f1a2efa

OpenWrt release

23.05.3

OpenWrt target/subtarget

ipq806x/generic

Device

ZyXEL NBG6817

Image kind

Official downloaded image

Steps to reproduce

set option ft_over_ds '1' in /etc/config/wireless for an interface and watch log.

Actual behaviour

Thu Nov  7 09:13:14 2024 daemon.err hostapd: nl80211: kernel reports: key addition failed
Thu Nov  7 09:13:14 2024 daemon.err hostapd: nl80211: NL80211_ATTR_STA_VLAN (addr=8c:7a:aa:51:5c:18 ifname=wl1-ap0 vlan_id=0) failed: -2 (No such file or directory)
Thu Nov  7 09:13:14 2024 daemon.info hostapd: wl1-ap0: STA 8c:7a:aa:51:5c:18 IEEE 802.11: associated (aid 1)
Thu Nov  7 09:13:14 2024 daemon.notice hostapd: wl1-ap0: AP-STA-CONNECTED 8c:7a:aa:51:5c:18 auth_alg=ft

FT works sometimes but the log is spammed with the errors above. Also I am not sure if this shows a real error that FT is not working like expected.

Expected behaviour

No response

Additional info

No error, FT working fine. Happens also with OpenWrt SNAPSHOT r27700-170ecbecfc

Diffconfig

No response

Terms

github-actions[bot] commented 2 weeks ago

Invalid Version reported. `` Is this from a clean repository?

github-actions[bot] commented 2 weeks ago

Invalid Release reported. `` Is this from a clean repository?

github-actions[bot] commented 2 weeks ago

Invalid Target/Subtarget reported. `` Is this from a supported device?