Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp53021ybr; Fri, 22 May 2020 00:25:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwDL0t55Epta+CKVG/aZB19GboC4LzJ+DllUZVwBDN+8RbhJJbbCXMfcqsx84WKrzOuFqU X-Received: by 2002:a50:a761:: with SMTP id h88mr2014575edc.73.1590132323267; Fri, 22 May 2020 00:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590132323; cv=none; d=google.com; s=arc-20160816; b=sX6fbCrrLBLo8Vx69GWDMTiGAei++T86B9WRObpeZ1egYSe2ictciyRXFNuvgSJiJm yl27aHRPbgcBP3pv2nSArk+17BMr59GCT5JlCDsimLfTbxK3X/9VqqeWm4Qo8fzESWcZ BTpsh8k3/YRchdNxQqP3aJRCGuMZHIsvRmlDED5yq4OoiqhOWgW90njpnk6l6hJZIOwa vsr7CTeejgrPR5i38XVHJqdcS3fmQMPXtLgviKARiBTTTsHIDjoTxnM7g8v+6TAwWQlD mrqmPYvIu1hN6kThGI1mUyaW4IjNJ0yTz3lHwb9rwykwR0lnFw0qAIudu6pXB4zGf36A OqPA== 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=ZBnE6hPLIYHMAQfmQI6gLRIp1sqBOVh2NHcpGaCnOMNmV6KBMtyh1KxvJkHslGP09h SUzGQICl7AOvY6COPwkXU0J8r0OBsc0kcBIuVjdBSuOkPgNliUPCwK2fyqmjBv4WVzj7 Lt9Uk35+OpPlvMNhInF0TxIdXJRvciOfL4GQP4ScfA7YlZezQI6lhEQXLTvH8Anvqaxx Wk5J4N+NdR/BpRmRozW2EIuM654P7NBwUjPdpuU6Sd+Ob7TLbHH8qZJiXhwmizWgPgO5 cZ2yL7pvtH0Rj/2IulwHLbfs1n4pX383wImZSQT6KSvXw3mu2JA1EEEPVu087Y9qjdu6 5j6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=qRZWfthw; 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 v12si4299654edb.234.2020.05.22.00.24.55; Fri, 22 May 2020 00:25:23 -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=qRZWfthw; 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 S1728616AbgEVHYs (ORCPT + 99 others); Fri, 22 May 2020 03:24:48 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:14917 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728434AbgEVHYs (ORCPT ); Fri, 22 May 2020 03:24:48 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590132288; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=hoB6VZlIL+yL2PWYvofUbOkDxJuj7N04JW1TznMD6h0=; b=qRZWfthwrYYcl1VR/zI3ljOcBp78peUAhCPcx/aqf8xx/tSB52Ug0MG/gVUZZp889N0F0rhG usuJk2KUiylmP8rrLA6UQJRIKQU0hWbtM6ar3LSk5QKjtmbPDUjfP9HC5m8jrTb4P7T71ZiT 3eodjwnBbRr4lrqbgw+LjTJc1qY= 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 5ec77e3e.7ff0da6c5340-smtp-out-n02; Fri, 22 May 2020 07:24:46 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 261D9C43387; Fri, 22 May 2020 07:24:46 +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, URIBL_BLOCKED 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 64804C433C6; Fri, 22 May 2020 07:24:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 64804C433C6 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 v2 7/9] ath11k: Add 6G scan dwell time parameter in scan request command Date: Fri, 22 May 2020 00:24:29 -0700 Message-Id: <20200522072431.27601-8-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200522072431.27601-1-pradeepc@codeaurora.org> References: <20200522072431.27601-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