wifi: ath6kl: add AR6006 hw1.1 (QCA6006) support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | wifi: ath6kl: add AR6006 hw1.1 supportdrivers/ drivers/ drivers/ +2 more | +69 | 0 replies | |
| 2/9 | wifi: ath6kl: handle the AR6006 WMI layoutdrivers/ drivers/ drivers/ +2 more | +141 | 0 replies | |
| 3/9 | wifi: ath6kl: ignore AR6006 regulatory domain eventsdrivers/ | +10 | 0 replies | |
| 4/9 | wifi: ath6kl: use per-device band and channel copiesdrivers/ drivers/ | +40 | 0 replies | |
| 5/9 | dt-bindings: net: wireless: add QCA6006 bindingDocumentation/ MAINTAINERS | +57 | 0 replies | |
| 6/9 | wifi: ath6kl: take the AR6006 MAC address from DTdrivers/ drivers/ drivers/ +1 more | +88 | 0 replies | |
| 7/9 | wifi: ath6kl: handle unsupported connection frequenciesdrivers/ drivers/ | +21 | 0 replies | |
| 8/9 | wifi: ath6kl: honour ieee80211-freq-limit from DTdrivers/ drivers/ | +47 | 0 replies | |
| 9/9 | wifi: ath6kl: add QCA6006 USB IDdrivers/ drivers/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH ath-next 0/9] wifi: ath6kl: add AR6006 hw1.1 (QCA6006) support
This series adds the AR6006 hw1.1 (QCA6006, USB 0cf3:9372) to ath6kl. The chip is the third radio of the Xiaomi AIoT AC2350 router and its second 2.4 GHz radio. The router runs OpenWrt on a big-endian QCA9563.
It depends on the big-endian fixes sent earlier:
https://lore.kernel.org/r/[email protected]
The series ran on that router with OpenWrt 25.12, backported to its backports 6.18.55 tree. The MAC address and the 2.4 GHz limit came from the device tree, added at runtime to the existing node of the USB port. The firmware booted, station mode joined a WPA2 network and got a DHCP lease, and AP mode associated a WPA2 client with unicast data both ways. Further runs took the MAC address from an nvmem cell, went through a deferred probe and let the firmware connect on a channel outside the limit, which the driver rejected. I only had one ath6kl device available, so I could not test two devices at the same time. Suspend/resume and firmware recovery were not tested either.
Patch 4 gives every device its own band and channel copies, so the device tree limit in patch 8 does not touch other ath6kl devices. Patches 5, 6 and 8 add a device tree binding, the MAC address from the device tree and ieee80211-freq-limit. Patch 7 fixes an old NULL dereference for a connection on a frequency that has no channel, which a dropped band makes more likely. The USB ID comes last, so no bisect point binds the driver to the chip early.
HT is not advertised to cfg80211 because this firmware does not provide RSN-CAP-OVERRIDE. The firmware nevertheless selected HT rates in station mode, while the AP ran without HT. The vendor driver sets the RSN capabilities with a separate command, which could be added later.
The firmware is not in linux-firmware. I asked Qualcomm about it here:
https://lore.kernel.org/r/[email protected]
The binding passes dt_binding_check. All patches build without warnings with W=1 and sparse for big- and little-endian MIPS.
Josef Schlehofer (9):
wifi: ath6kl: add AR6006 hw1.1 support
wifi: ath6kl: handle the AR6006 WMI layout
wifi: ath6kl: ignore AR6006 regulatory domain events
wifi: ath6kl: use per-device band and channel copies
dt-bindings: net: wireless: add QCA6006 binding
wifi: ath6kl: take the AR6006 MAC address from DT
wifi: ath6kl: handle unsupported connection frequencies
wifi: ath6kl: honour ieee80211-freq-limit from DT
wifi: ath6kl: add QCA6006 USB ID
.../bindings/net/wireless/qcom,qca6006.yaml | 56 ++++++++ MAINTAINERS | 1 + drivers/net/wireless/ath/ath6kl/Kconfig | 4 +- drivers/net/wireless/ath/ath6kl/bmi.h | 1 + drivers/net/wireless/ath/ath6kl/cfg80211.c | 102 +++++++++++--- drivers/net/wireless/ath/ath6kl/core.c | 13 ++ drivers/net/wireless/ath/ath6kl/core.h | 26 ++++ drivers/net/wireless/ath/ath6kl/init.c | 128 ++++++++++++++++-- drivers/net/wireless/ath/ath6kl/main.c | 39 +++++- drivers/net/wireless/ath/ath6kl/target.h | 8 +- drivers/net/wireless/ath/ath6kl/usb.c | 6 +- drivers/net/wireless/ath/ath6kl/wmi.c | 88 ++++++++++-- drivers/net/wireless/ath/ath6kl/wmi.h | 51 +++++++ 13 files changed, 475 insertions(+), 48 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/wireless/qcom,qca6006.yaml
base-commit: 18d0bedbb5f0538396cb7f763ed9cd1dd69c5b23
prerequisite-patch-id: 89962941e5e2bec4646eadeb25f7429dec473b24
prerequisite-patch-id: 8ef8976331b491b95bde120d4e16f11bb2201feb
prerequisite-patch-id: fce0da8f0fbbba34b79af8437b3842d93af001b6
Signature · 1 line
2.54.0 (Apple Git-157)