Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp88587ybg; Tue, 2 Jun 2020 17:21:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxibth32JjMxpPEIt5Ar6okRklfLY7qRAaU2lo9uaizpdmUmlkITUa7dkoF4g+1nnM/OZE X-Received: by 2002:a50:e007:: with SMTP id e7mr9061836edl.232.1591143667467; Tue, 02 Jun 2020 17:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591143667; cv=none; d=google.com; s=arc-20160816; b=vtl1NlaTfmTW3W2A0wyrigPAj64Io2JLL0ZQkje+RGtW/MJK6N7fyfwuC7HJnNzhFc ad1oyuPHyHcamUwlxjLpeom7UcwmbdhR9Dl3KnsI6QKlq6nJQDEomkxn9r6LAAzqBd5I 77JEXNxtSdaVsF5QS5GBiXaYD1GZKFgEGbqjh/czWzc29KuuXcgSaKMpSOp6bsX9SlCW 2Ltq6dPLaCfvpVHiXmpqzcaks2/MmmzpRsydl5udxU/I/TIXXy0yz3cuGrwzcoI2X6gF vAfWnwmSg43OfPLNP4kmBT+X2Z32+VDL33R1Tq5kYoY8ANpybB3pXBKDh31Psy7yLJeJ zIKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature; bh=X0UzlAS1milmh+GTVyFqTnKwFNPCkFvTnMEiUBk0c00=; b=d3ueVEa20EtYpOab1/qfEv1yO3+3Vd/y1Fq3+HqjEBOwejScPOIw6Nt7t09fG3mOSw 44upwdv9bq+J/fML2g8jQnte/+9jo65qJvMFTQD0jCxWLQDPsFV+LI2GD3UZkwnqCk4o le2cKS1TMGKv/O/6yPEpxTp8f2WFlB1EmXhKxyjRpNUPqnaGm/iFQYlnDYWBAH53QBnh DBIgESbUOI05MrMAC68FE+ROaw0ADupgLeMQmquApfS+A5yFwnEDJpG51h866nStipyW 4/mMHA8iNllN1Xl7FV0gkcTlzsCtsbJ3YXCbj9qtgFHF4WcJzKCM2Ag7lnavXdIeeFt0 Vb0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=euHpnTzX; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu21si239296ejb.675.2020.06.02.17.20.43; Tue, 02 Jun 2020 17:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=euHpnTzX; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728458AbgFCARt (ORCPT + 99 others); Tue, 2 Jun 2020 20:17:49 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:24272 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgFCARs (ORCPT ); Tue, 2 Jun 2020 20:17:48 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1591143467; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=X0UzlAS1milmh+GTVyFqTnKwFNPCkFvTnMEiUBk0c00=; b=euHpnTzXnpFJ28CCVzK08R/zLDnkpVfLp56a9/YHWWWVu+zufWaxz6C6q4o3Drl16+ajI/7z eDNa1Kns+uAygsTS4zVmYbjrTjwHM6ZRlnQqbZVIohh4g7bG3XU4Lm/Ma0URtT9n8VbH9Z35 G+gJBcCHxrolXfdkXSMsxOnDP6I= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5ed6ec1be276c808de5ab070 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 03 Jun 2020 00:17:31 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 047B8C433C6; Wed, 3 Jun 2020 00:17:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from pradeepc2-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pradeepc) by smtp.codeaurora.org (Postfix) with ESMTPSA id 37C91C433CA; Wed, 3 Jun 2020 00:17:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 37C91C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=pradeepc@codeaurora.org From: Pradeep Kumar Chitrapu To: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Pradeep Kumar Chitrapu Subject: [PATCH v5 1/8] ath11k: add 6G frequency list supported by driver Date: Tue, 2 Jun 2020 17:17:17 -0700 Message-Id: <20200603001724.12161-2-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200603001724.12161-1-pradeepc@codeaurora.org> References: <20200603001724.12161-1-pradeepc@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patch adds support for 6GHz frequency listing. Signed-off-by: Pradeep Kumar Chitrapu --- v5: - no change v4: - no change v3: - update channel starting frequency from 5945 to 5950 as per IEEE P802.11ax/D6.1 drivers/net/wireless/ath/ath11k/mac.c | 71 +++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 1729e96113ef..45ffe9543c63 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -33,6 +33,15 @@ .max_power = 30, \ } +#define CHAN6G(_channel, _freq, _flags) { \ + .band = NL80211_BAND_6GHZ, \ + .hw_value = (_channel), \ + .center_freq = (_freq), \ + .flags = (_flags), \ + .max_antenna_gain = 0, \ + .max_power = 30, \ +} + /* frame mode values are mapped as per enum ath11k_hw_txrx_mode */ static unsigned int ath11k_frame_mode = ATH11K_HW_TXRX_NATIVE_WIFI; module_param_named(frame_mode, ath11k_frame_mode, uint, 0644); @@ -86,6 +95,68 @@ static const struct ieee80211_channel ath11k_5ghz_channels[] = { CHAN5G(173, 5865, 0), }; +static const struct ieee80211_channel ath11k_6ghz_channels[] = { + CHAN6G(1, 5955, 0), + CHAN6G(5, 5975, 0), + CHAN6G(9, 5995, 0), + CHAN6G(13, 6015, 0), + CHAN6G(17, 6035, 0), + CHAN6G(21, 6055, 0), + CHAN6G(25, 6075, 0), + CHAN6G(29, 6095, 0), + CHAN6G(33, 6115, 0), + CHAN6G(37, 6135, 0), + CHAN6G(41, 6155, 0), + CHAN6G(45, 6175, 0), + CHAN6G(49, 6195, 0), + CHAN6G(53, 6215, 0), + CHAN6G(57, 6235, 0), + CHAN6G(61, 6255, 0), + CHAN6G(65, 6275, 0), + CHAN6G(69, 6295, 0), + CHAN6G(73, 6315, 0), + CHAN6G(77, 6335, 0), + CHAN6G(81, 6355, 0), + CHAN6G(85, 6375, 0), + CHAN6G(89, 6395, 0), + CHAN6G(93, 6415, 0), + CHAN6G(97, 6435, 0), + CHAN6G(101, 6455, 0), + CHAN6G(105, 6475, 0), + CHAN6G(109, 6495, 0), + CHAN6G(113, 6515, 0), + CHAN6G(117, 6535, 0), + CHAN6G(121, 6555, 0), + CHAN6G(125, 6575, 0), + CHAN6G(129, 6595, 0), + CHAN6G(133, 6615, 0), + CHAN6G(137, 6635, 0), + CHAN6G(141, 6655, 0), + CHAN6G(145, 6675, 0), + CHAN6G(149, 6695, 0), + CHAN6G(153, 6715, 0), + CHAN6G(157, 6735, 0), + CHAN6G(161, 6755, 0), + CHAN6G(165, 6775, 0), + CHAN6G(169, 6795, 0), + CHAN6G(173, 6815, 0), + CHAN6G(177, 6835, 0), + CHAN6G(181, 6855, 0), + CHAN6G(185, 6875, 0), + CHAN6G(189, 6895, 0), + CHAN6G(193, 6915, 0), + CHAN6G(197, 6935, 0), + CHAN6G(201, 6955, 0), + CHAN6G(205, 6975, 0), + CHAN6G(209, 6995, 0), + CHAN6G(213, 7015, 0), + CHAN6G(217, 7035, 0), + CHAN6G(221, 7055, 0), + CHAN6G(225, 7075, 0), + CHAN6G(229, 7095, 0), + CHAN6G(233, 7115, 0), +}; + static struct ieee80211_rate ath11k_legacy_rates[] = { { .bitrate = 10, .hw_value = ATH11K_HW_RATE_CCK_LP_1M }, -- 2.17.1