Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2866588ybk; Mon, 18 May 2020 09:48:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTFPf9tS9tTiPP2akBcIJi0xP9r5iX9VE51gCxc4yQP6xdeLupYp49ojCiSd11nORCT85q X-Received: by 2002:aa7:d787:: with SMTP id s7mr14798615edq.104.1589820517066; 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=PxYrhzCJDe+bLGnYUH3m3UB+g1ybyUunPy1J7J8Djs2K1l0L79aKjznYa4w6B56Yr6 h9E3AAJ3Cytw6QUrM1woK/sIfj+qivgIkzE2XLro0yrMNNHDsZFVyipspXHdR5OL8np0 XRyFdKUZpXMeMl4bgwNKlXY5KN9C42PEyDdOWRBOKqPyi9yfc4Mt1D2Bj/JpdqruiZwY mZWLHHtx/jg/yTbM/vmgfdIhAejtijhBt6ZjdxLFfeyE/eWhkGf2NtHWkzVa6m8w6BFp 4h4NIILy88nQ4/zGrmXBcUh9YEKQWskLSQNM436WVEmH7SL8Bwswe46ZnKiBTorV4LJr Q2lQ== 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=dCc9M/8DAuiAPeLH25GUjrqKICw0SIbanjTImDLIJgw=; b=FGtnvQXUcpeqCX7iMXwBrM2Oby8U5h4hclkynSr+O6bN+NFpRXMsizQbHX3qaDmXYI TmJeq4IaGyxKBnjbf7QqDvmaF+u66prnnusvV3C76sGcjXzjU3wwc3tmx+x/28dw54py w3aTkhjtPXOdtUvQU++YbvjdJptLZ+wpVFoC1elG6voN1OfQ9SfvOhKQKrJth2ojXitz lPUbDvtW/BfWtVGdEE6BuErDS+/wGoB2hVr/pmG0g+ip0AjQzlyAuNmO9rFu5xD6bdmg Jaf4sAS/1Cd+tDwjG23F62GCRwRuWk/P6minjoJAuglpHUFNK4MS1YZPVlg9J7BT9QII zUPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Om+PNRwC; 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 d60si6563648edc.337.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=Om+PNRwC; 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 S1728355AbgERQoi (ORCPT + 99 others); Mon, 18 May 2020 12:44:38 -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 S1727035AbgERQoh (ORCPT ); Mon, 18 May 2020 12:44:37 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589820277; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=dCc9M/8DAuiAPeLH25GUjrqKICw0SIbanjTImDLIJgw=; b=Om+PNRwCdRTivJ4AZn3NTE/d5/eUrFkzzSvx82EAkTXcoWWBUmK4UYQ2g5GWSEu0J4NyVayZ YwWT6G7uhBwH172Lv+OCQX7yRVOmMaXrLIEwT8AAOXm2F/f2Pg/qvH6+uO4/2/9W9KN6CJgw nPGmaPAA23FsB2Le7nTaWbFe2TY= 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.7feb1e9411f0-smtp-out-n02; Mon, 18 May 2020 16:44:36 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 37B66C432C2; Mon, 18 May 2020 16:44:36 +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 82B3FC44792; Mon, 18 May 2020 16:44:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 82B3FC44792 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 7/9] ath11k: Add 6G scan dwell time parameter in scan request command Date: Mon, 18 May 2020 09:44:22 -0700 Message-Id: <20200518164424.29497-8-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 Add 6G scan active and passive dwell time parameter to scan request. Signed-off-by: Pradeep Kumar Chitrapu --- drivers/net/wireless/ath/ath11k/wmi.c | 4 ++++ drivers/net/wireless/ath/ath11k/wmi.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index c2e3a4d6f07e..dfa4bd7b44ad 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -1899,6 +1899,8 @@ void ath11k_wmi_start_scan_init(struct ath11k *ar, arg->dwell_time_active = 50; arg->dwell_time_active_2g = 0; arg->dwell_time_passive = 150; + arg->dwell_time_active_6g = 40; + arg->dwell_time_passive_6g = 30; arg->min_rest_time = 50; arg->max_rest_time = 500; arg->repeat_probe_time = 0; @@ -2045,6 +2047,8 @@ int ath11k_wmi_send_scan_start_cmd(struct ath11k *ar, cmd->dwell_time_active = params->dwell_time_active; cmd->dwell_time_active_2g = params->dwell_time_active_2g; cmd->dwell_time_passive = params->dwell_time_passive; + cmd->dwell_time_active_6g = params->dwell_time_active_6g; + cmd->dwell_time_passive_6g = params->dwell_time_passive_6g; cmd->min_rest_time = params->min_rest_time; cmd->max_rest_time = params->max_rest_time; cmd->repeat_probe_time = params->repeat_probe_time; diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h index 76c2da2c5db7..4937d02839fc 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.h +++ b/drivers/net/wireless/ath/ath11k/wmi.h @@ -3061,6 +3061,9 @@ struct wmi_start_scan_cmd { u32 num_vendor_oui; u32 scan_ctrl_flags_ext; u32 dwell_time_active_2g; + u32 dwell_time_active_6g; + u32 dwell_time_passive_6g; + u32 scan_start_offset; } __packed; #define WMI_SCAN_FLAG_PASSIVE 0x1 @@ -3127,6 +3130,8 @@ struct scan_req_params { u32 dwell_time_active; u32 dwell_time_active_2g; u32 dwell_time_passive; + u32 dwell_time_active_6g; + u32 dwell_time_passive_6g; u32 min_rest_time; u32 max_rest_time; u32 repeat_probe_time; -- 2.17.1