Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp87273ybg; Tue, 2 Jun 2020 17:18:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHBSzW2VI7ZYk+lX8hnsQZa4IYjR0XAZiusdUz2PQ9ar7ZZMIOGpyVxJMP2GI5rbeQY6mq X-Received: by 2002:a05:6402:21ed:: with SMTP id ce13mr1426026edb.152.1591143510100; Tue, 02 Jun 2020 17:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591143510; cv=none; d=google.com; s=arc-20160816; b=AA4l5Dkyoojr2oULzrdnXgC19gNqV62i4K63N76b/8AlzCI3sOmG1zm2A8Lj6opyky 9Ra9ccC59mxkGmBCto/IbLe5nBQs2sUHkodlNpiWWCjC4tPm1Pi3CFqEYm4PCYDnzleV +5/k2qfHrIaSYO38RkgtpyAs45ucA1DpQ0RV9PByqsB9PbVlNlSJ9Judy7kN4BisQe0w KEJfsXQpOUPWf5Hh3Ds/QGhWT629kz0MCMV8E4Tg31i0xuHnBIoSvwd/ew/VPDgucZ7L f9O9FGqsw2Il5uTpIpte0CWehGwuFR6vlqEJVqsv7XkRbAbEtR6dakRKfiIKSfigYpzP warA== 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=hoB6VZlIL+yL2PWYvofUbOkDxJuj7N04JW1TznMD6h0=; b=LAR9tCr7s1txnESzuokbHDVhmzetDESDKgh4GGa0wXWNc0h8JufVH92SHjSolXyp3+ 3O2WlHUgUxrvaUVBaOcuh4vb+kJ/URyStfQzaZJ2KXnWPTsisyqxslJMAcdO1U9//RNc BhsZPBovKkE22gCoOEHfRzQZeL7RtUTYGenTv6vnNCKvGCfke8DFbUD90xmXG/jXLmLX vNlmv8uNSY+9w7xVHCStDDyLxFP7uu0Q8bZQDXl13gDUR3ncaOe7R5PqWIbYBdOQv1+9 NiG544M7iPVt8fuSu9ACQXdCJ60PAywIcNzsA0of1FPRDV/jKIsgQRXQ4T/ZbNXob2r8 KNfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=xNM0Z0uq; 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 c5si176217edk.226.2020.06.02.17.17.52; Tue, 02 Jun 2020 17:18:30 -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=xNM0Z0uq; 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 S1728426AbgFCARe (ORCPT + 99 others); Tue, 2 Jun 2020 20:17:34 -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 S1727795AbgFCARe (ORCPT ); Tue, 2 Jun 2020 20:17:34 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1591143453; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=hoB6VZlIL+yL2PWYvofUbOkDxJuj7N04JW1TznMD6h0=; b=xNM0Z0uq6c0WoacwfmKMx9fuYKahy+PHN2nPeLEOIb/4ghs2YCh2TgsB2xtnJSsqxl86aCBQ EN8Zj+HcMhsBLS34zMQSgvzLh47b+/X6eLo2Bjc+nFwZeR7TjN2RlTRCo69KNDoLghZ0UYR4 FUPiRHnJ7rsIHuQ8yu0jI0z1ac4= 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-n04.prod.us-west-2.postgun.com with SMTP id 5ed6ec1c4db551abdeb411e3 (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 AF789C43391; 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 38D19C433C6; Wed, 3 Jun 2020 00:17:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 38D19C433C6 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 6/8] ath11k: Add 6G scan dwell time parameter in scan request command Date: Tue, 2 Jun 2020 17:17:22 -0700 Message-Id: <20200603001724.12161-7-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 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 a6bbb3badd1f..239a336f55f4 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