Linux wireless drivers development
 help / color / mirror / Atom feed
From: Josef Schlehofer <pepe.schlehofer@gmail.com>
To: Jeff Johnson <jjohnson@kernel.org>
Cc: linux-wireless@vger.kernel.org,
	Johannes Berg <johannes@sipsolutions.net>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH ath-next 0/9] wifi: ath6kl: add AR6006 hw1.1 (QCA6006) support
Date: Mon, 30 Nov 2026 10:50:33 +0100	[thread overview]
Message-ID: <20261130095042.41330-1-pepe.schlehofer@gmail.com> (raw)

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/20261129154710.86640-1-pepe.schlehofer@gmail.com

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/20261129142154.53536-1-pepe.schlehofer@gmail.com

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
-- 
2.54.0 (Apple Git-157)


             reply	other threads:[~2026-11-30  9:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  9:50 Josef Schlehofer [this message]
2026-11-30  9:50 ` [PATCH ath-next 1/9] wifi: ath6kl: add AR6006 hw1.1 support Josef Schlehofer
2026-11-30  9:50 ` [PATCH ath-next 2/9] wifi: ath6kl: handle the AR6006 WMI layout Josef Schlehofer
2026-11-30  9:50 ` [PATCH ath-next 3/9] wifi: ath6kl: ignore AR6006 regulatory domain events Josef Schlehofer
2026-11-30  9:50 ` [PATCH ath-next 4/9] wifi: ath6kl: use per-device band and channel copies Josef Schlehofer
2026-11-30  9:50 ` [PATCH ath-next 5/9] dt-bindings: net: wireless: add QCA6006 binding Josef Schlehofer
2026-11-30  9:50 ` [PATCH ath-next 6/9] wifi: ath6kl: take the AR6006 MAC address from DT Josef Schlehofer
2026-11-30  9:50 ` [PATCH ath-next 7/9] wifi: ath6kl: handle unsupported connection frequencies Josef Schlehofer
2026-11-30  9:50 ` [PATCH ath-next 8/9] wifi: ath6kl: honour ieee80211-freq-limit from DT Josef Schlehofer
2026-11-30  9:50 ` [PATCH ath-next 9/9] wifi: ath6kl: add QCA6006 USB ID Josef Schlehofer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130095042.41330-1-pepe.schlehofer@gmail.com \
    --to=pepe.schlehofer@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jjohnson@kernel.org \
    --cc=johannes@sipsolutions.net \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox