Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp88584ybg; Tue, 2 Jun 2020 17:21:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0904OnHwGzm4rgAkBkVgmMNogBEBEyPTSaIiDDOyGkTBF/JAumB2fkpgWFVs21hsbHhWz X-Received: by 2002:a50:e606:: with SMTP id y6mr29701767edm.63.1591143667377; 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=XOM+pzT7c2HTkm0o0XPzGijnMg1EEcAay1C83P+KDJRATTcirvmHSoR1+5Zt5X7wgw L2dTQ2NDR59Aavo/OkiYEpgf0nGmkwsJDDdL7lHLI4WMsfMbpQ6lSKNtBUnsqMIUs0ey 10nTfaN9m+PVYi+EyVE0CM9tT9lgkaJQHwRejHgbI06+Qmk4CqVYUxFcrxjT/b5VYyQm QgGkg3rdk0HBVuVMmpS8WcTzzGQ6IMYIAA4T0L97g7ABIiZdCVVA/lRj620y2zqSer6T +l58P9gdr1Z2/PWsUqj5XwJnYWTV1VRlWgt6o8/qki/JEY0ppcJovFS8tVSt+DQ33jpS fr/A== 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=mHQRI4mz69Shvq6+l/fRbjB7B7uuAytgvwUwV+kg7PQ=; b=sSKQdZD0XhnTmkDeLuFJPeD++Cgxt9ljJlif5Ze2nBu+1G2zRZ0fVVd8uLtGTM7kbF VcFeMSTv3C0KvcJZmZhilmWdYCOCdQk8x71a5TkTlszAu3BP4r78xxdPcr5MG/OM6EQV Tv8mdzhwbzE4kRP9qVTG1ODGYItBx2ruM6RStn3JG9UzDuqNoUrSGKtyACg6dqeEqG7S 0kEcJI+6RktC3fIqhn4X5MJ/sELo74gWb72BQDPooh/5VZbXNFcX0JMRsx3c4QNoeIUY HvNzAXuTN6oVPb8kyZT+Oq/7HngsvGnAyg52vxk+5jbk+2ZQ/IU5pAfh+AZDMgthRQKI aR0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=xaFpcjHE; 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 a20si185327edn.74.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=xaFpcjHE; 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 S1728449AbgFCARr (ORCPT + 99 others); Tue, 2 Jun 2020 20:17:47 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:11575 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726589AbgFCARr (ORCPT ); Tue, 2 Jun 2020 20:17:47 -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=mHQRI4mz69Shvq6+l/fRbjB7B7uuAytgvwUwV+kg7PQ=; b=xaFpcjHEobbshEjtzUnUmfIvzGL5PabrJNA4mOdcuHsH7NIeMyQVXprWBTin2tXMeAGH4zVy hGuOcakEI83tVch6ie1x/oZPRmO9RTKScYsJK3fyl3GuhonHTrzrgX3Gt55X90QLK7QLArGO bQZaMPiNc6JvEgsHv8FeGzoPj+A= 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-n05.prod.us-west-2.postgun.com with SMTP id 5ed6ec1c9077f356cb0fa408 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 03 Jun 2020 00:17:32 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5284BC43391; Wed, 3 Jun 2020 00:17:32 +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=ham 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 CC0F2C433CB; Wed, 3 Jun 2020 00:17:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CC0F2C433CB 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 5/8] ath11k: set psc channel flag when sending channel list to firmware. Date: Tue, 2 Jun 2020 17:17:21 -0700 Message-Id: <20200603001724.12161-6-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 If 6 ghz channel is a Preferred Scanning Channel(PSC), mark the channel flag accordingly when updating channel list to firmware. This will be used when making scanning decision in 6GHz channels. Signed-off-by: Pradeep Kumar Chitrapu --- drivers/net/wireless/ath/ath11k/reg.c | 4 ++++ drivers/net/wireless/ath/ath11k/wmi.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/reg.c b/drivers/net/wireless/ath/ath11k/reg.c index 453aa9c06969..7c9dc91cc48a 100644 --- a/drivers/net/wireless/ath/ath11k/reg.c +++ b/drivers/net/wireless/ath/ath11k/reg.c @@ -161,6 +161,10 @@ int ath11k_reg_update_chan_list(struct ath11k *ar) else ch->phy_mode = MODE_11A; + if (channel->band == NL80211_BAND_6GHZ && + cfg80211_channel_is_psc(channel)) + ch->psc_channel = true; + ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "mac channel [%d/%d] freq %d maxpower %d regpower %d antenna %d mode %d\n", i, params->nallchans, diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h index fd82cff7537b..76c2da2c5db7 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.h +++ b/drivers/net/wireless/ath/ath11k/wmi.h @@ -2520,7 +2520,8 @@ struct channel_param { allow_ht:1, allow_vht:1, allow_he:1, - set_agile:1; + set_agile:1, + psc_channel:1; u32 phy_mode; u32 cfreq1; u32 cfreq2; -- 2.17.1