From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796032247; b=D/FYENQGjmhMNKzxjg298AbUkZEzni6xBEnjX/aRPZp1BCCD5N5FwhTJb4V4G5J6zU7s YvcmMnrWt3Gul9yRR5oF1PWQaQ7zmwfDNNzGYJfNZPvOw4AHvBjWns3VlPpyNIuM3IBC9 D5oxLkbjWYbk34jO7N9i6+nWS3ZXn/pqREayXSjTqGotEg4ZCtVgPo+RZJzMel87nQrK5 ZJt7XZnPnvC5C/oSjnGP6P56+66CzBGm3YodOEvHVhItbO7y1w3ju9k/4jacOF/UwFHkq UbQpbi7WEZm7FgnYby+YDxN0VeCqNDMzRw1U8qORwcxydTkEejH1bNC/Rp8TDBf9QXA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796032247; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=954VlH9Mhn3YFlGvryM7iglv0akZZ5VZjjVF6RKilxE=; b=thz9/oUq3pyjmLWT3GIpRYQyILyzBW8tcsXfJC+uM6j0PT4NiErGKeuSBPCKq9Y4Gif8 oKZ/N7dkWgHd+rzrGdAEezNxbicH6w08UAcPE5IilbkfgqX0d66dQawEQu8qG81Z53wTR S7NMu4pklLptt8asy3HflMy8KcF8a2s3FBf7DnbPZ9GPor4JMn21kiJbrtoDWPw3HTHMH 4fF3NwntGuc5sUj8HH0oLm9uh8RI26dLJTMO/dMh7mmf1NIxHsMybnY42aNLaz3vqpz7e 5m9h9uGiEaTnikMFCRVODEDNsLB+7NgtzVu1waoh6uXcVgo8KhRbxLEpG3EtbhQc3ow== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=s2PaaYmJ; arc=none smtp.remote-ip=209.85.128.41 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 881B3606A320 for ; Mon, 30 Nov 2026 09:50:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 881B3606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=s2PaaYmJ Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4bba5e17728so43140495e9.2 for ; Mon, 30 Nov 2026 01:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796032245; x=1796637045; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=954VlH9Mhn3YFlGvryM7iglv0akZZ5VZjjVF6RKilxE=; b=s2PaaYmJDbpjuNA2IVtrBetkTa2NKYAVrelHyvBumiZH02CuVSvQUMcBElYH5j4z+H CPbc1tz107xyXiVzO2mxFdqapPpUyxfVDgBIxJun3YQvtxKYW3VfJc5joSWiYmj1Q9KP tWDGesxei7Xru1OGfFjThkCEWNNyZLpds6URbN/OseB3MSRVt35HSqbcR8wxBNSVNQBj iqKnuNXM7KSr7liOp63RNqj+6lC7xiTC905Nudq/AnXnPCufhK8jKAU+mFc3oGtM7G+W CESR/nIcvmkhwvYDDhm+BROessuJ6dj/6Zq05t+VVgd9vAr8rzJjLEijhGAA2twkebkr UxLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796032245; x=1796637045; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=954VlH9Mhn3YFlGvryM7iglv0akZZ5VZjjVF6RKilxE=; b=A3Sa+Ih+70uaqVP8QcXnnnk3w5YYTQGwVbkFue3kbAxYooZikNvDVW24X63LMKO+Ly 3fHh5osdTJMtxoMFUoBjIvIcuzYSFBh/ctg4v/lS3XSb+L6EUdErOvQILm/qOkhXX29e JkY6331gGjEvHU7mHMQUOD3rlE/FnF6w05SHV6+VtqzzaQcwnTW9aD/qYv1Df2igbG4u C6kc+83r7FrB52nbO8Dv3Lh+RSUD/xwPYHk216jEk4F41oVWv/YATazP0Qf1Aj8KU8V2 b/PoynCqkYBRopbvF9QnwZFWXqwLgHk1YDkxsno3gJg4v1LKIaTMEAp8A5EHdQtRBmPK DSow== X-Forwarded-Encrypted: i=1; AL+hErGCFPHHREkwuInY3v2JbosyRFvkyvbCzmZTGh2Hvgw4J8pS1mMSXcEm9KaHOxXesIyeCp8m3XIdpiPaEBE=@vger.kernel.org X-Gm-Message-State: APuU4Z+YLhAsAmXMxpIo2ttgohNiWhpMUPGwfGu1leYlj8VBmEI8YW1v JotQftCwnJzqPMPpf8RsfBG7QJt6hqKp3DpFaHBDg8O+8aA0s3yTgtZo X-Gm-Gg: AZFdTZdyrovUW5RKnY6+cXCiGFYtMvl5vPPMi/8h18xI8j83Lfd7CBE2G9hwOOalMAs eJ5izppbVdqNQkTPnCU4LheuYkQAa7JwJByWcYDUbc0NICWf+9fYd6bBo/PvB/L/GAtSDAmwX3S ypUfpM4/XYiboNPb6X50Yyu29RYTIutSMOsbPsiJD4fWWKEly3MjssUC+qANLW4kpnTll5PD8Zt KsbyennVILV6sTX4tDG2iPJHKgGixeAzekRryi4h8YgjjfMSogtI07W2BXH5c47GWkikR68/HRn B6hb4JoI0AFnnUzbolKVhzzOR/MtJSo/tHBlJX91VxxHb7FRImAH7UOPFAE87VOm2yPWjTGx3qf LT2g7RcDRe+X3x18b7qWP1K0MDpxTTTwSMeCiLyBvPPtM+sVOHarfMjsxDuWA+buaFBywUTyBIX Dmg7mnCdHhB+YCEzstYJaL29lhLWdgqnXbOwEaxx4IrjODIHsHYTl1RIwH3GRLTNI6JqdIESoqP tF8vqZP2mtGkYS5VuRWaczM0yKU+M+sy4UdNmcYgr2fymVo+FOBDUTVKGfHxbX/1umjOmFRtmg0 eViBbZ0+snQAYYl5etIBKHWQ/9OJAYAfkwddHXw0/uvrTenWlU9Z0Idg7qIglEjlkFmMbESJxR0 IBj5uhEhKH6vO9iBGz4Nzj6jo0bKq/YqdLIKsJz1ai9b9tTRTZt4ZBemt8/WStOOJRVSdGO08ki mxYMBHn8UgatB177+r26qQWGpXGlRmNVRTkFdI00240vnPNl753Vqx X-Received: by 2002:a05:600c:530f:b0:4bb:680f:9a3 with SMTP id 5b1f17b1804b1-4bb887e220emr657080385e9.2.1796032244742; Mon, 30 Nov 2026 01:50:44 -0800 (PST) Received: from localhost.localdomain (dynamic-2a00-1028-8388-a84e-1080-8fd8-c252-0ba8.ipv6.o2.cz. [2a00:1028:8388:a84e:1080:8fd8:c252:ba8]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6b10b5f6sm59591566f8f.34.2026.11.30.01.50.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 30 Nov 2026 01:50:44 -0800 (PST) From: Josef Schlehofer To: Jeff Johnson Cc: linux-wireless@vger.kernel.org, Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 Message-ID: <20261130095042.41330-1-pepe.schlehofer@gmail.com> X-Mailer: git-send-email 2.54.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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)