From patchwork Sun Oct 24 19:42:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Dziedzic X-Patchwork-Id: 1545442 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=wjCanHgY; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=o9rMgPpW; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HcpTC62n2z9s1l for ; Mon, 25 Oct 2021 06:45:03 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kpi1TmMEnRgV+60DRmHEMXhcWFJx/dcE4QEFRhabMv4=; b=wjCanHgYLjkm/Z Lw3adRQR9ujkjnFMFwdTJmmEu0IYjMXvIpM/kZuwmmGyFf5eOsZEjCGaR6UJXhio9gOax1yIuiq7a fIb3diDVxSo5rArntd2rOdOKzTa6gimCsN9SEk1Oj9Y/eqxb/ZC2MyDpiIkDrKyNiepYl8x7L2grt 8Lao1e1voW0R+DYTOOPsRMDTJttK1U1qDaaA1/GFRwScMkumWbvzq8GmwD+HG9BNtPpuucL51dB/H 69yAj3+zi1ql2a2tH8M+GLGbJKNsgEXm0KzC2DoNJMsKungbXw/YZrW3zMwjYo2Vr1Y5dJDs0//bu mmoctUWby2bsY56NK3AA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mejNx-00EVeY-Li; Sun, 24 Oct 2021 19:42:25 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mejNs-00EVdi-Ve for openwrt-devel@lists.openwrt.org; Sun, 24 Oct 2021 19:42:22 +0000 Received: by mail-lf1-x136.google.com with SMTP id p16so7576794lfa.2 for ; Sun, 24 Oct 2021 12:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hl5BmhkN8jhHf6mWhWJ/9lRrLE5obEYg7grMaCE/N24=; b=o9rMgPpW0EZCkE4rW7csXdpQkEd5Apm92atG3AAb354TnKW7JBVoStDH852NE0w+t8 KJrYiVPlToAT3Jwt4kjJWtY8kmTzhT8x//W+DVpi47xgXyAM47ddrX8OqXYYtg1Zt4a6 /yW7Ph3TuDAsfquZb0WZmIFKB4ts1meS+LOtJbDFJ/K5iZuMFWWmVT9wRztpEmRpuo8/ wBRicDNiTEfThi1rbKsSucluu8772aI5zC8TO0KZrepDjuJQbPI3YYk5dJZ/HuDOCCjk JEHwkw2vXg2MqsmYKigivw4s34V3yVNvZy3CTJ6yMtuYT6mY8NFkRnH1JxKkeSEtsN7Q NoCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hl5BmhkN8jhHf6mWhWJ/9lRrLE5obEYg7grMaCE/N24=; b=6UaE6j7dCxu+3vEVixD9ti8MBV9HUKODY8TB2mt/vCvvvbcZidDlGfTru1Wc9b5rOw ahnSJ8oyns151P8FIPOBQJY8vbficzHBz6IXf4ZAmfK10CoeNsfosoem5aNA6317iQwQ vCejXNjI9En7ug6rJTiqIVLagJNnZ+jWbm4Izpj9C4X1ZIA/+2mAsREoQREClTEGYwI7 bEwsDZsAqbSmsmCSz6fvzuDOP36zp3HXabSVn9/u3uM+7Jbj+E9t5CPoe8LbIDb4iKEn IhTJWxlQ34I/n5ElZ6yLuzXBi2RLTrHY4l433owXVakl5Py+r4gZF9MOx5tpqt5dbFJN GhOg== X-Gm-Message-State: AOAM530O+C7h6ZbYVV64+3cbntHh//a4/jXfhj2QA2uwQNF9sVH5W6+8 0tZgCPoLsMvVwAGH2cCVRfKvEGgZnnE= X-Google-Smtp-Source: ABdhPJwW4/J8+ngrqaN3ELKY2wIhHGm0hK7Q8wqu+Stc0B0TLQBKeNTa9oLJGAFN7AJfUtX3LFp0ww== X-Received: by 2002:a05:6512:3c98:: with SMTP id h24mr13121157lfv.93.1635104539440; Sun, 24 Oct 2021 12:42:19 -0700 (PDT) Received: from localhost.localdomain ([62.141.192.106]) by smtp.gmail.com with ESMTPSA id z5sm1409444lfr.96.2021.10.24.12.42.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Oct 2021 12:42:19 -0700 (PDT) From: Janusz Dziedzic To: openwrt-devel@lists.openwrt.org Cc: hauke@hauke-m.de, Janusz Dziedzic Subject: [RFC 3/3] mac80211: allow to choose ath11k driver Date: Sun, 24 Oct 2021 21:42:09 +0200 Message-Id: <20211024194209.521400-3-janusz.dziedzic@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211024194209.521400-1-janusz.dziedzic@gmail.com> References: <20211024194209.521400-1-janusz.dziedzic@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211024_124221_041533_B8B9BA08 X-CRM114-Status: UNSURE ( 8.43 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Signed-off-by: Janusz Dziedzic --- package/kernel/mac80211/ath.mk | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/package/kernel/mac80211/ath.mk b/package/kernel/mac80211/ath.mk index ba03ae11a6..634fb13195 100644 --- a/package/kernel/mac80211/ath.mk +++ b/package/kernel/mac80211/ath.mk @@ -1,6 +1,6 [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:136 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [janusz.dziedzic[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Janusz Dziedzic --- package/kernel/mac80211/ath.mk | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/package/kernel/mac80211/ath.mk b/package/kernel/mac80211/ath.mk index ba03ae11a6..634fb13195 100644 --- a/package/kernel/mac80211/ath.mk +++ b/package/kernel/mac80211/ath.mk @@ -1,6 +1,6 @@ PKG_DRIVERS += \ ath ath5k ath6kl ath6kl-sdio ath6kl-usb ath9k ath9k-common ath9k-htc ath10k \ - carl9170 owl-loader ar5523 wil6210 + ath11k carl9170 owl-loader ar5523 wil6210 PKG_CONFIG_DEPENDS += \ CONFIG_PACKAGE_ATH_DEBUG \ @@ -19,6 +19,7 @@ ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS ATH9K_DEBUGFS \ ATH9K_HTC_DEBUGFS \ ATH10K_DEBUGFS \ + ATH11K_DEBUGFS \ CARL9170_DEBUGFS \ ATH5K_DEBUG \ ATH6KL_DEBUG \ @@ -27,6 +28,7 @@ endif ifdef CONFIG_PACKAGE_MAC80211_TRACING config-y += \ + ATH11K_TRACING \ ATH10K_TRACING \ ATH6KL_TRACING \ ATH_TRACEPOINTS \ @@ -35,7 +37,7 @@ ifdef CONFIG_PACKAGE_MAC80211_TRACING endif config-$(call config_package,ath) += ATH_CARDS ATH_COMMON -config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH10K_DEBUG ATH9K_STATION_STATISTICS +config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH10K_DEBUG ATH11K_DEBUG ATH9K_STATION_STATISTICS config-$(CONFIG_PACKAGE_ATH_DFS) += ATH9K_DFS_CERTIFIED ATH10K_DFS_CERTIFIED config-$(CONFIG_PACKAGE_ATH_SPECTRAL) += ATH9K_COMMON_SPECTRAL ATH10K_SPECTRAL config-$(CONFIG_PACKAGE_ATH_DYNACK) += ATH9K_DYNACK @@ -55,6 +57,7 @@ config-$(CONFIG_ATH10K_THERMAL) += ATH10K_THERMAL config-$(call config_package,ath9k-htc) += ATH9K_HTC config-$(call config_package,ath10k) += ATH10K ATH10K_PCI +config-$(call config_package,ath11k) += ATH11K ATH11K_PCI config-$(call config_package,ath5k) += ATH5K ifdef CONFIG_TARGET_ath25 @@ -281,6 +284,25 @@ define KernelPackage/ath10k/config endef +define KernelPackage/ath11k + $(call KernelPackage/mac80211/Default) + TITLE:=Qualcomm 802.11ax wireless chipset support + URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath11k + DEPENDS+= \ + @PCI_SUPPORT +kmod-mac80211 +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT \ + +@DRIVER_11AX_SUPPORT +kmod-hwmon-core +kmod-thermal +kmod-crypto-michael-mic \ + +kmod-qrtr-mhi +kmod-qcom-qmi-helpers + FILES:= \ + $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath11k/ath11k.ko \ + $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath11k/ath11k_pci.ko + AUTOLOAD:=$(call AutoProbe,ath11k_pci) +endef + +define KernelPackage/ath11k/description +This module adds support for Qualcomm Technologies 802.11ax family of +chipsets. +endef + define KernelPackage/carl9170 $(call KernelPackage/mac80211/Default) TITLE:=Driver for Atheros AR9170 USB sticks