Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp246099ybm; Tue, 26 May 2020 15:50:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6imdtwSzwx1xdhqLQY1qE8bunvJEa4nZQcQkNmiTGBaizj1QM/3XyjwwFui8eOgSePc4l X-Received: by 2002:a05:6402:699:: with SMTP id f25mr1268382edy.281.1590533450674; Tue, 26 May 2020 15:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590533450; cv=none; d=google.com; s=arc-20160816; b=UrU4GJMna1JRLK4lALCx8wIZREdWdY2aNYzmA8X0UdVtzPStKeTjwzrq5BDh4vAtdp dWFdDH91BVe6VjDiMZsZAj21u/rAa70PEjTwpGsSrDSZXUzFkv+a7v9SSn+rJmknYnKC ZwekKUqUGs6g+uBKbq6lEblY2WFY6JbS+ezRWhDepwMF7t44RKgHgdgaedA98Jn+gXG7 E+1cvl1dOrsb97sbNzkp2jDdm4T5KLomHtxb62MWqFHTe1Qx7kOVBfyI4aRUEv7Z8BXE d9S+1dEh0gArcqgj0C9nfcBvw80dcQ98y579CGg3LJm1PYPpERbDeAWmftlQIXw5BBaY Fkvg== 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=nPo+ee9Luad0VieIjLMrgTlqr4K+kry/rEj4+y7a51c=; b=OPCfx0vdJ4Z2lDeae9S7/cdSD3U131CDBWX7CjQIY+jj9CqNlWboM8FI1GcN7k4tZh uLNuCcsTKYc2bq4Q4nsTd4kcYh++SEXsdFD+BGem8qqX0Z5bdnAQX8E0CyXePYDI2wWR dcMAO1rgFmhNn6HQB1a7ZZnREYulrmaRCyl2mJQLhqYJdhcZ7etjd1jH106Qb8lmW8Y5 G2ZH/N9QtiXQw3+5VPiz9s+VS6Syn9MJswN30esL6s9uQX04/iEN93PP9EyNtvuBjJqN brpcit9fcE0ImKluVudsbPFBRCDxzN8Me17KMw0Nosod3VGarmWM5KAKtR/h7eTXjZ3u 6IAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=McVODOTI; 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 dn18si712779edb.348.2020.05.26.15.50.27; Tue, 26 May 2020 15:50:50 -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=McVODOTI; 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 S2404371AbgEZWry (ORCPT + 99 others); Tue, 26 May 2020 18:47:54 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:12951 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389755AbgEZWrx (ORCPT ); Tue, 26 May 2020 18:47:53 -0400 X-Greylist: delayed 300 seconds by postgrey-1.27 at vger.kernel.org; Tue, 26 May 2020 18:47:38 EDT DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590533273; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=nPo+ee9Luad0VieIjLMrgTlqr4K+kry/rEj4+y7a51c=; b=McVODOTIjrw3D2C7AJbidZSb3iBAk0qM+upRoKq337UvUakHxg5KzfiAeg8tLm92/PcjaSSr RQp9Ou5SDoJ8bh0r8cw6zgVwtu1LqpWCw5MrLM0jhktYHB3/7sohWUbbQi8ivlFoYqklHcP5 gSw8Gu1gEa+UYSN6s02A5ZxvH0o= 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-n01.prod.us-west-2.postgun.com with SMTP id 5ecd9b5f3ac6f4f60367642d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 26 May 2020 22:42:39 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6D93EC43387; Tue, 26 May 2020 22:42:39 +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 BEA18C433A0; Tue, 26 May 2020 22:42:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BEA18C433A0 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 v3 6/9] ath11k: set psc channel flag when sending channel list to firmware. Date: Tue, 26 May 2020 15:42:14 -0700 Message-Id: <20200526224217.11119-7-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200526224217.11119-1-pradeepc@codeaurora.org> References: <20200526224217.11119-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 --- 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..cb08c73fd215 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 && + ieee80211_is_channel_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