Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp2199742ybm; Sun, 31 May 2020 11:57:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzodEQQftY7FAadLodwt6BfgOrgs+z0qAmtPRJdd+vpX09bbuhZFo8oq+LKW/nWoxrx2O2a X-Received: by 2002:a05:6402:b70:: with SMTP id cb16mr18988350edb.234.1590951467947; Sun, 31 May 2020 11:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590951467; cv=none; d=google.com; s=arc-20160816; b=zIAzATOFQnqYwNJQbsTWjBfBx6Q2vZBdunPSQCR/w4W3EOScnDRhXoy20FefQHNNaf wbfKNLTH2Un5PO2HBOLgHF/KRVUFQALa0bxwbRE0YOuORYsgRIA9xvYfbwn0DSDB6VY0 cm7tYECa01+CWn/JItGvemqzRV4lBjKDWD2yB0gfbNhLLvarlDW9jf/IxgDaaO2tEUe7 McRYqrJBpIfPeQZGD97pcRrh3GXIHbsRLePpOBBEYC2AnRptMawAajgV9IyPir5plFh9 gHfufniAmwTQiC85X/DlIJAcI90AVCKzGw7Fg0Ae+Ibbmbxsp45MnA1l2RO1WF9lzvzL sMrA== 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=GY0UL1d42jxKtmM+sKRO++ZAk83fZY5nWlncvV98PLQ=; b=weZMsBthK0dGfwcUh6zireGH16nTkqZ24h7qZBP8Vpe/DSS72SAYsa7V2+G80AXO8X /eBz/CyaHKpkxRsr74RZwSm2OX2+BGXAFIng8+1LGUYMexDm+uZMXET3EeCqiGryOQBy yD7CAfvS7weMgXZMSWhyXGga9Y3RW3y4KsD8D3abJGt+QWB3k6uSfxXDqFLeqYQmxccb 6/hfi4Y8zTeJEuT5DhNepReYhYxYwRpcUzBujIqjSbzinqHJ36MctvszSSekgGa5pFWw i31PslkHwvSwfv+VRgzAExyIBtNPEV9kKFNg6KlclI3EkUdkPzh24jsCjtddAg2Xxlu2 jEew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="OIMQ/x0Q"; 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 n27si6439948eja.232.2020.05.31.11.57.24; Sun, 31 May 2020 11:57:47 -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="OIMQ/x0Q"; 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 S1728352AbgEaS41 (ORCPT + 99 others); Sun, 31 May 2020 14:56:27 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:48738 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728294AbgEaS40 (ORCPT ); Sun, 31 May 2020 14:56:26 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590951385; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=GY0UL1d42jxKtmM+sKRO++ZAk83fZY5nWlncvV98PLQ=; b=OIMQ/x0QUcb0I978xGizxe7ow82uWuAMXyzU8Kg3O8c5ivsemDiNH97Veb5G0+e82keoCwY0 +cDjGKsJxVvXC2D+M7wSc6HJjZQSollLV72l4GU5oxX5T07gMwLTleraZfh7t5fdLBWCn8gV y+mMKw8XbjB4/glbufJsiIohkQg= X-Mailgun-Sending-Ip: 104.130.122.27 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-n02.prod.us-east-1.postgun.com with SMTP id 5ed3fdc944a25e00523c325b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sun, 31 May 2020 18:56:09 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4C27CC433A1; Sun, 31 May 2020 18:56:08 +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 CB982C43391; Sun, 31 May 2020 18:56:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CB982C43391 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 v4 5/8] ath11k: set psc channel flag when sending channel list to firmware. Date: Sun, 31 May 2020 11:55:57 -0700 Message-Id: <20200531185600.20789-6-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200531185600.20789-1-pradeepc@codeaurora.org> References: <20200531185600.20789-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 --- v4: - use cfg80211_channel_is_psc. v3: - use helper function ieee80211_is_channel_psc() instead of channel flag for identifying 6GHz PSC channels. 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