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
FS#488 - dynamic VLAN doesn't work on ath10k #7459
Comments
HeavyMetal: I just tried this on my router and can see the same error for ath10k. The ath9k radio continues to work great. |
smunaut: Same issue here. Also exists in OpenWRT tracker under https://dev.openwrt.org/ticket/22369 And there is a mailing list thread http://www.spinics.net/lists/hostap/msg01650.html |
corrideat: I have a TP-Link Archer C7 v. 2.0, running LEDE Reboot 17.01.2 r3435-65eec8bd5f, and I can confirm this issue with the ath10k 5GHz radio, and how the exact same configuration works with ath9k. A note to the devlopers: I'd love to see this fixed. Even though I'm probably not qualified to touch the internals of //hostapd// to resolve this (without breaking other things), I'd be happy to provide any help I can. EDIT (2017-06-25): I have created [[https://mega.nz/#!NbxjAK6Q!rlYKJAsJFKBAJFjTLXacXlyY7saqvl1vv-UURmKqUr0|a patched wpad package]] based on this [[https://patchwork.ozlabs.org/patch/621648/|hostapd patch]]. Although the network 'works' after using this modified wpad package, mind the [[https://lists.infradead.org/pipermail/hostap/2016-May/035693.html|potential repercusions]]. It would seem like the best approach would be to actually fix this at the driver level. |
HeavyMetal: I would want to see this fixed also. My router is also the TP-Link Archer C7 v2.0 |
trey: I can also confirm that ath9k works, ath10k does not with LEDE 17.01.2. With OpenWRT 15.05.1 both work. I think the VLAN feature is really important, but this is only my view. Any suggestions what a user can do, to get Qualcomm producing better drivers? Has Felix any idea or e-mail address where I can complain? |
corrideat: It'd seem the issue is, in fact, getting better drivers (or firmware) from Qualcomm. |
HeavyMetal: I just compiled the latest snapshot "OpenWrt SNAPSHOT, r7135-a0a616e" and this issue is still there. |
Actaz: Not fixed in 17.01.5 |
hmronline: I can confirm this issue still exists on OpenWrt 18.06.1, for both ath10k and ath10k-ct drivers. Tested it with TP-Link Archer C7 v2.0. Related: |
robimarko: This is not an OpenWrt bug, but ath10k since there is no support for them in ath10k so far. |
chrislimpach: The http://lists.infradead.org/pipermail/ath10k/2018-November/012542.html works for me. With it, I get dynamic vlans on ath10k (on a TP-Link Archer A7). I had to fix it up a little bit, and locate the matching mac80211 changes, and update the firmware. I've only updated the firmware for my device.
|
HeavyMetal: I have tried the patch above from Christian Limpach but I am getting the errors below. Device I am trying on is TP-Link Archer C7 v2 using the 18.06.1 branch.
Mon Dec 17 13:39:37 2018 daemon.info hostapd: wlan0: STA c0:ee:fb:aa:bb:cc IEEE 802.11: authenticated
Mon Dec 17 13:39:37 2018 daemon.info hostapd: wlan0: STA c0:ee:fb:aa:bb:cc IEEE 802.11: associated (aid 1)
Mon Dec 17 13:39:37 2018 daemon.notice hostapd: wlan0: CTRL-EVENT-EAP-STARTED c0:ee:fb:aa:bb:cc
Mon Dec 17 13:39:37 2018 daemon.notice hostapd: wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1
Mon Dec 17 13:39:37 2018 daemon.err hostapd: WPA deinit of wlan0.3 failed
Mon Dec 17 13:39:40 2018 daemon.notice hostapd: wlan0: CTRL-EVENT-EAP-RETRANSMIT2 c0:ee:fb:aa:bb:cc
Edit: I have git cloned his repo instead of manually patching it is working. |
hmronline: So is this already included in openwrt source code ? I will be glad to build a firmware based on master branch and report back if it is working or not. |
sameerz: I'm also affected by this bug. Was hoping 18.06.2 would have included a fix for it, but it doesn't appear to. Linksys EA8500 (Qualcomm Atheros QCA9980). |
hmronline: I can confirm it is still not working. Tested with a custom firmware built from master branch. |
HeavyMetal: I am still using the patch above as it is not in the mainstream yet. Are there any plans to merge the patch? |
hmronline: It has been a couple years since it was initially reported, patches were available, yet none was merged for OpenWrt. Maybe there is a reason for not resolving this, but didn't hear why so far. Could any body help us ? Thanks! |
NerdyProjects: It has been fixed upstream some months ago and changes made it back to openwrt trunk (e.g. NOT 18.06.4 but the 5.3 backports which get used in current git HEAD (~2019-08)). I can confirm dynamic vlan working out of the box when you compile current openwrt but you have to use ath10k instead of ath10k-ct (which became the default), also a more recent firmware (non-ct version as the ct firmwares don't seem to support the single packet raw tx mode). There is a bug open at the ct firmware as well, they might include it at some point. Now the downside: I might apply the patches specifically to 18.06.4 and try again, but maybe not now :-) |
NerdyProjects: Okay, the 19.07 branch does not include the patches yet, but is already on ath10k-ct. So:
It works for me without performance degradation. |
tomkep: This still does not work on Archer C7 v5 on 18.06.5: Sat Nov 23 13:44:06 2019 daemon.info hostapd: wlan0: STA 44:85:00:83:89:89 IEEE 802.11: authenticated Own build with: make PROFILE=archer-c7-v5 FILES=openwrt-01 PACKAGES="-dnsmasq -firewall -iptables -ip6tables -kmod-ip6tables -kmod-ipt-conntrack -kmod-ipt-core -kmod-ipt-nat -kmod-nf-conntrack -kmod-nf-conntrack6 -kmod-nf-ipt -kmod-nf-ipt6 -kmod-nf-nat -kmod-ppp -kmod-pppoe -kmod-pppox -kmod-slhc -libip4tc -libip6tc -libxtables -odhcp6c -odhcpd -odhcpd-ipv6only -ppp -ppp-mod-pppoe -wpad-mini wpad uhttpd luci-mod-admin-full luci-proto-ipv6 luci-theme-bootstrap libiwinfo-lua rsync -ath10k-firmware-qca988x ath10k-firmware-qca988x-ct -kmod-ath10k kmod-ath10k-ct" image on: openwrt-imagebuilder-18.06.5-ar71xx-generic.Linux-x86_64.tar.xz I cannot also see it working on 19.07.0-rc1. |
tomkep: It still doesn't work on 18.06.5 & 19.07.0-rc1. |
ynezz: Tomek, you should reproduce it first with the prebuild images from openwrt.org, then try building your own images. |
Hakujou: Just tried this with latest snapshot on Archer C7 v4 (r11618-416d2cc71e), the issue still occurs.
AP/VLAN capability is not reported. Swapping CT to non-CT firmware solved the issue, dynamic vlan works on qc9980. Will try tomorrow on 9984 and report back. |
Hakujou: It works on 9984 without swapping firmware. Tried on both RC2 and today's snapshot. |
HeavyMetal: I compiled OpenWrt 19.07.0-rc2, r10775-db8345d8e4 on ipq40xx gl-b1300 with non-CT firmware / driver and it didnt work.
daemon.err hostapd: Failed to create interface wlan1.5: -95 (Not supported)
After compiling OpenWrt SNAPSHOT, r11631-deb835849a with non-CT firmware / driver it is working fine. |
tomkep: It still doesn't work on https://downloads.openwrt.org/releases/19.07.0/targets/ar71xx/generic/openwrt-19.07.0-ar71xx-generic-archer-c7-v5-squashfs-factory.bin. I've only replaced wpad-basic with wpad. Sat Jan 11 00:52:04 2020 daemon.err hostapd: Failed to create interface wlan0.10: -122 (Not supported) |
imac: Just discovered this on 19.07.0 Tue Jan 28 17:41:14 2020 daemon.err hostapd: Failed to create interface wlan0.81: -122 (Not supported) Archer C7v2 ath79 target: Only the Ath10k is failing. 2.4G radio is fine. Rolling back to 18.06 for now. |
imac: iw list Wiphy phy0 "* AP/VLAN" is notably missing from the interface modes supported by Ath10k on 19.07.0 |
imac: Some upstream discussion, fixed in some other CT firmware, but possibly Ath10k being left behind.. greearb/ath10k-ct#72 |
imac: It looks like a small amount of work might be required, or that the patches are just waiting to flow through.. not clear as this commit seems to be related:
|
trey: I also tried yesterday to get dynamic vlan running with 19.07.1. Both versions of the ath10k driver (ct and non ct) still have the same error:
Could we do anything that someone would fix the problem in openwrt ?! Any need for a ath10k card for the openwrt developer??? |
arthurand: Installed 19.07.2 on my Archer C7 V2 and I confirm that AP/VLAN option is unfortunately still missing
|
jnahmias: Works for me on a Netgear R7800 running 19.07.4:
|
imac: Noticed that ath10k wave-1 radios on 19.07.7 still have not seen the patch that should make this work, thought some are sucessfully building on C7v5, so seems possible |
imac: So it looks like all that remains is to check for the CT feature required for support.
where the stock firmware is checked for
Per the comments in greearb/ath10k-ct#72 The shortcut is to just hack out the decision to remove the AP/VLAN feature as shown below.
+++ b/ath10k-4.19/mac.c 9998,10001c9998,9999 < if (test_bit(WMI_SERVICE_PER_PACKET_SW_ENCRYPT, ar->wmi.svc_map)) { < ar->hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN); < ar->hw->wiphy->software_iftypes |= BIT(NL80211_IFTYPE_AP_VLAN); < } |
imac: Working in current snapshot on Ath10k wave1 radios, so maybe see in 19.07.8 |
arthurand: What is your router model and version? Have you downloaded the unmodified snapshot? In iw list it shows the AP/VLAN capability on the 5GHz interface? I also tried switching drivers on the 19.07.2 but it didn't help. |
tomkep: It looks like it is working, after very long wait, on 21.02.0-rc1 on TP-link Archer C7 v5. |
arthurand: After a very long wait it is working on TP-Link Archer C7 v5 running 21.02.0 stable, will test on TP-Link Archer C7 v2 soon. |
augenblickliebhaber: I want to use dynamic VLAN with a APU2 board with Compex WLE600VX wlan card (also ath10k driver). |
czk:
Dynamic vlan config on ath10k seems not to work. Same config on ath9k works fine.
Config:
config wifi-device radio0
option type mac80211
option channel 36
option hwmode 11a
option path 'pci0000:01/0000:01:00.0'
option htmode VHT80
[...]
config wifi-iface
option device radio0
option network vlan1
option mode ap
[...]
option dynamic_vlan '1'
option 'vlan_tagged_interface' 'eth1'
option 'vlan_bridge' 'br-vlan'
option 'vlan_naming' '0'
Log:
Thu Feb 9 15:54:37 2017 daemon.err hostapd: WPA initialization for VLAN 1 failed (-1)
Thu Feb 9 15:54:37 2017 daemon.err hostapd: WPA deinit of wlan0.1 failed
Thu Feb 9 15:54:37 2017 daemon.debug hostapd: wlan0: STA ac:22:0b:a1:c7:6b IEEE 802.11: could not add dynamic VLAN interface for vlan=1
The text was updated successfully, but these errors were encountered: