Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2866592ybk; Mon, 18 May 2020 09:48:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu8tJEjGHbTde0kXcn94lp0fJMjYar6DHooosLUsiF0UOsM0IHyAiXXH823nuet0munDd/ X-Received: by 2002:a17:906:404c:: with SMTP id y12mr5575479ejj.9.1589820517132; Mon, 18 May 2020 09:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589820517; cv=none; d=google.com; s=arc-20160816; b=zuVYCjHuTKc+5geStxZzEOvQb8jYi8SEkWY36UtMI5iJyY3MJxxmvigIe9v71/RQO1 Rr6RYsNNx+sGUd+bTMDPaDpI0CnvJORUWCer/TNmTUMwIxzqBIJrmxhUbVKvzjFNQrpF 9DZMHB2HORyT21WyifovggVg8A69ghImO0wKtbFBJ6hEeAp3t6Ob7uVCRnPXjcLv+Tlc +kGcZ4pmhVTRaiZhrnb5SwgNaj9sNfPZJFcqtRbmlPnT2CLd4JxKwbnsVS9Dfa3q0bci gWZq2xgqJUkz9Jms4Qe+f4ss8B1LfZP7u6S4JkLP5foCjK3ZBPbfVXz9mNrgro2tD6/P aNpg== 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=jyz3x2JwKOlJ71uD4rr/6M+zl/2g0sj9LnuIltlzqhA=; b=mz7wGpRXwlHIGlKWbCZBOZiIpvyVAhe15LMK8ttTMZTlpEpOqwgDBRlKlhd4yPPCcd M8LiiyBtOFahuYEhTfqQ7yMbmnVEL0nORTjEsyWwWUqo1D5/IIL+qgi9NsvBV87y9a4K 9btIE5qwzm1znZe23J5iotZXcsrtVBYO1nW+KkMSeV131ivCPu42E2fWh6xCbDdgfYbN 95iRjbRJXgyaLksEtvo9/ohhTUiTqxFO+lbtndGm9x9eA6YWLP15sghGgctHAYmqpv2g x/TQywEB7P/AqGuwSQ6G+WhPsCqxlSxAjH2h53ITjovX8yrca/mRASEJ8YAOzVdnpbSu okeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=NjVxDttf; 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 m3si4386525eda.585.2020.05.18.09.48.13; Mon, 18 May 2020 09:48:37 -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=NjVxDttf; 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 S1728509AbgERQon (ORCPT + 99 others); Mon, 18 May 2020 12:44:43 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:62346 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728280AbgERQol (ORCPT ); Mon, 18 May 2020 12:44:41 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589820281; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=jyz3x2JwKOlJ71uD4rr/6M+zl/2g0sj9LnuIltlzqhA=; b=NjVxDttfOSglzZrVtLsBr5b7nb6KS1COkH7lUENRtlbWRYjPbI58i238LZyHiubp7Zevczlh eRw81/vxz869K9n6uknhA35KAO8orPRqMgUCdgO3h3bV3kxRVF1i28/ZVCl6BJYqcnhweuMk FAn+A0kHO92svrTZQ/N0imskOJw= X-Mailgun-Sending-Ip: 104.130.122.26 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 mxa.mailgun.org with ESMTP id 5ec2bb74.7f005871bfb8-smtp-out-n02; Mon, 18 May 2020 16:44:36 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id DACD4C4478F; Mon, 18 May 2020 16:44:35 +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 0319CC433D2; Mon, 18 May 2020 16:44:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0319CC433D2 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: Johannes Berg , ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Pradeep Kumar Chitrapu Subject: [PATCH 6/9] ath11k: set psc channel flag when sending channel list to firmware. Date: Mon, 18 May 2020 09:44:21 -0700 Message-Id: <20200518164424.29497-7-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200518164424.29497-1-pradeepc@codeaurora.org> References: <20200518164424.29497-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..50d13a5d7cf8 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 && + channel->flags & IEEE80211_CHAN_PSC) + 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