Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4928949pxv; Tue, 20 Jul 2021 14:51:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwf0NX6NpF5ref3n9LcQCupdaQvJavPJJFmkmCEOPJIy0i7vzbQkKOOTL2ZkKy2Vauqh5x X-Received: by 2002:a05:6402:34cc:: with SMTP id w12mr43366625edc.314.1626817891739; Tue, 20 Jul 2021 14:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626817891; cv=none; d=google.com; s=arc-20160816; b=zH7bdczzrAX90ZzSt45fnAoByv07EGvTR88ZCqS+7L6NBTtyRC3LnKr6aR3TDoVhHa 9mrHPQS8CAID60dPFQ2MXWTQLUD0jRKkOCz67DxcncQH/gIMMNkWveGmVvU+/hY/N9/7 82yyd0UkOyozg/kkr1IH7HDO2Zot5kerzHz3jNCD4NiYcCkgf/HbS6ppHH+wVe39f3oZ drojuSTEnpCvadpAbvYV9NT6/C1Xy6rkaMD6O+QYxg5RJqJk16x2SpzaqPt0wLtHlWSC 2KdGkbyGPf93JzlhxPt/h/QQSY00NYOeaQZmcH4mP0gCFGKoqQYwF+liNVcX1vMxhRpO LMVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:sender:dkim-signature; bh=6pzFGEDvqBEmnGYB5qUOd0LsVvfzg+I3RubpomLBkZs=; b=zs38mUjneE7XbXq+pc7vod9GsAJjMg1PXxiVcK6JPkR+CbLGBicRdwNNmnkO1WqdtQ LPh5Wz8gQ5raOv/XPtjvia7iXmam8+4t11dQK6URgUQViFf59FA/wqfNeYW0uvbcXH+7 Y+HxXjPknEHRqXRzlSpg+LXpX1Oqs2cLN6OkxJ8hFvs11/ceIGldjyJ/9iQCbbDXXGEQ lpIOBRdCpUDtyBKUeLR5PMiNPTwFFlbvNm2eJbtaPonhP2iofgCMMWrJiYY9wtmEjwqi dg0Qbpp3zlL+UGoxtMt0aWo6UVUrVF35ewKw3C24osxBAokIjMLUXTYaWHgz+Jx3R/h2 33tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=afaVHm62; 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 nd17si27262400ejc.732.2021.07.20.14.50.44; Tue, 20 Jul 2021 14:51:31 -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=pass header.i=@mg.codeaurora.org header.s=smtp header.b=afaVHm62; 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 S229729AbhGTVJh (ORCPT + 99 others); Tue, 20 Jul 2021 17:09:37 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:46690 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232359AbhGTVJH (ORCPT ); Tue, 20 Jul 2021 17:09:07 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1626817785; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=6pzFGEDvqBEmnGYB5qUOd0LsVvfzg+I3RubpomLBkZs=; b=afaVHm62I7R4rbVZqt8dxzRZw5DSYjTGH2UNSJDdSh157eaik3ZtaMvtighqUjmZvVjDjFLY rQH3SWlwU3eWxH4J31mrNT5hF+j46y3qG/9QxR1G3HusWnPdDvtC0aRx2RPU4YYOA0dBk2SY StVzrFZFVsNv+kl/TkIZM0kZPkM= 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-n05.prod.us-west-2.postgun.com with SMTP id 60f744f225e566327881293f (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 20 Jul 2021 21:49:38 GMT Sender: jouni=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 609FEC4338A; Tue, 20 Jul 2021 21:49:38 +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=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from jouni.codeaurora.org (85-76-67-217-nat.elisa-mobile.fi [85.76.67.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jouni) by smtp.codeaurora.org (Postfix) with ESMTPSA id 76032C43460; Tue, 20 Jul 2021 21:49:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 76032C43460 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=fail smtp.mailfrom=jouni@codeaurora.org From: Jouni Malinen To: Kalle Valo Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Seevalamuthu Mariappan , Ritesh Singh , Jouni Malinen Subject: [PATCH 3/3] ath11k: Align bss_chan_info structure with firmware Date: Wed, 21 Jul 2021 00:49:22 +0300 Message-Id: <20210720214922.118078-3-jouni@codeaurora.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210720214922.118078-1-jouni@codeaurora.org> References: <20210720214922.118078-1-jouni@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Seevalamuthu Mariappan pdev_id in structure 'wmi_pdev_bss_chan_info_event' is wrongly placed at the beginning. This causes invalid values in survey dump. Hence, align the structure with the firmware. Note: The firmware releases follow this order since the feature was implemented. Also, it is not changing across the branches including QCA6390. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1 Signed-off-by: Ritesh Singh Signed-off-by: Seevalamuthu Mariappan Signed-off-by: Jouni Malinen --- drivers/net/wireless/ath/ath11k/wmi.c | 1 + drivers/net/wireless/ath/ath11k/wmi.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index a53783229520..e3d11a0a7b7c 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -1339,6 +1339,7 @@ int ath11k_wmi_pdev_bss_chan_info_request(struct ath11k *ar, WMI_TAG_PDEV_BSS_CHAN_INFO_REQUEST) | FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); cmd->req_type = type; + cmd->pdev_id = ar->pdev->pdev_id; ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "WMI bss chan info req type %d\n", type); diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h index 78849f0255fa..799b3bd96a27 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.h +++ b/drivers/net/wireless/ath/ath11k/wmi.h @@ -2962,6 +2962,7 @@ struct wmi_pdev_bss_chan_info_req_cmd { u32 tlv_header; /* ref wmi_bss_chan_info_req_type */ u32 req_type; + u32 pdev_id; } __packed; struct wmi_ap_ps_peer_cmd { @@ -4058,7 +4059,6 @@ struct wmi_vdev_stopped_event { } __packed; struct wmi_pdev_bss_chan_info_event { - u32 pdev_id; u32 freq; /* Units in MHz */ u32 noise_floor; /* units are dBm */ /* rx clear - how often the channel was unused */ @@ -4076,6 +4076,7 @@ struct wmi_pdev_bss_chan_info_event { /*rx_cycle cnt for my bss in 64bits format */ u32 rx_bss_cycle_count_low; u32 rx_bss_cycle_count_high; + u32 pdev_id; } __packed; #define WMI_VDEV_INSTALL_KEY_COMPL_STATUS_SUCCESS 0 -- 2.25.1