From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796032247; b=E+0LKHE/Wmv+Ta6rcRrOb2Cfnr/XSAHe8KF6RXWgrFousSPe6+Vte8KGG6jj8z+JTnqn N4Q4P33c8TgwcNch2LZQLrgIble5SVr6zv0u7XC/NW96ZFPlNxqBiR1mWpUUpYgg8X5ka fU2oJ21bbW0BSl2B4dhx7O/3G1ACOgAhY9S/ktaKB3IJCfdijd6VjId1GL8ih9oZSqgz/ zgp0+r8l/CtjaVa70FmltcPucxApkbOvsx6f6qXSVPb/iuPIy51T+rXOWEgZ5F5HPlNyg siVEgmLn45vNvUmhWaZSrIYpys+zbT88dMIEd+BabRPfiSn4aRDsK0gy2KNeG5yUYzQ== 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=X4t3QR36u/uPsaX0vEcs2w1JFdQ37PvYAWGsy6v/BQU6bmzlBuv1Td9OtHQAWetdOPZU Mo4jpTdem1hGgN+v/KfbcAtdjuZamhhaWA4kOOJdI9EMRIH797FKDxaV3YuTgcY580q1k ScXlkNvoAr3qne9b+weBgWwpxmJhC+FRmpNAEYsuVQkrNoMTc2YjSwcRwCTIcnSgaMF6t 4gWrw9dS/ud8Oyr6YCM5qs/tLtsjigGI9CK5eaxcxyrSd8FKSXwPuPvXZs/fUi3WPFOn/ D8LsEE2XpKLXGREVTQik2YJIir49lbFS7tSyMu9Yy0HsNAbhnoA3EiLC8a0ZV4ne1mQ== 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.54 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 893C1606A325 for ; Mon, 30 Nov 2026 09:50:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 893C1606A325 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-f54.google.com with SMTP id 5b1f17b1804b1-4a2000d5fb1so59889755e9.1 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=V0hEYCWwAp8AE3vbyUDamnLbGW/S9RemTi0IIRvFGaqZGnj3MqlnVlAjIEjHkrqV6T Of17dVDYaSlUoXjy9FgYI7Trr1RETSN0xs6xE31hm6RWTntn0e1Fdnt9dsWCxC4rDqQL x+nkHVJgO6TOkvuM2I2h2glVWWDwYs5Nfw0j9gGoA4T/T0aRIgdr34r6eZgwmNV95ZLA QCvBcPC+IZPYIeBkKpukcvXy3+cFXoooFQ8nqSXMaD3t9B7VFQZ+zV12/7E52ZESQTqm W3aHUH32gPjKlUt+7M0Lv4TlOS6NAzr1+LgEP93IGPcn25yYdayHXhTmeyyrd8K4Gzc0 zvmA== X-Forwarded-Encrypted: i=1; AL+hErEFIlv9QXh/eTTGEs81byAL5PamMQmfJhGc1sLJDaKXjD7usF3TX848us8XoAcupkFGaUOWbR7sZkWN@vger.kernel.org X-Gm-Message-State: APuU4Z/q0KtCXNh8j///NY+2utw+fqm/XsMJG0ec4kEZqD0emie1upK6 ahdM2O0ZdlPUwG4XygZhgaSNOAoCWikbvxWarjeyGB1fMK+nKFYF35wNTQEf63cT X-Gm-Gg: AZFdTZehXW8Rv2rt5o8Bh7E5xXel0G2KVk4m7SdGUIv+zQXPKyRSXaBiQ0v7JS+cNDi XmV5CTAYEnhfIqJikopkHP/jvBqtKR+1y2MkijEiLgsRRT56QRwaYp+DSGVjYXjZEE/P0bkooRU PoA+5WAukUxWQdA+YiPPorVPh+g0e+0Leux1UJlbEGJFinpoP1dY3zd8RV2wZW5zlRbnk3KKITS Ewz4YI2OeDza9lYtArtnZkRyohbRlj9a0QLMDSQ8RclYWIUU2MWkEXKdDzWo6W30y4ZzjniyzSm +oUWjVrKPValSM0tUY0tvPcjoydKHj9PrEgc7O6YmGpaDbQTQaV4d+pLdFjeor+OLM2Qf16rLU7 A5nWe+sEkUmht3IZakxmxX28ENHtn2pquHuJDFiuevml47TIGrSwIvOqqe1+f64LhNZmdiM/3ef 0sBpoaQswip5NUTZt3yDuEVlDhbqhj7gJt4ejXY8zj3vp4yxYYL5z5KhYqHVurKsGqfu7ZlwD15 tVg21w1t3R7EDsPI5kUlxIAo00cD8OlWRESjVHWGaYkGVE2t3lMpfbl5WpQZbaFvGmtN3dVg7Uw 56Sp16UNitT+/kGSO4669kRtUa3PjFgSL3YFxneTZDt1h0o4mdKvEgQ3La3OfoNoDJFQoXh+CNa ONZ2j7aAccrBC7ptkO0LItHFgMIIW/9FOVGXyJrNnLUQSuyqq0ITTCLZyi2KEarDJNJcYwA0VPw J/Jp+wvhhjXyS+tJ2I6h7oYBR0+t/Bzgn2jv9QcGy3qZR//fZ2z553 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: devicetree@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)