Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1552416rdb; Thu, 7 Dec 2023 02:22:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvwdZ0O2CuOPM9+YNw/Vwoelfbs7u1+ZmYSjwuaOKjKf1fnt4HBQTyGoTasn1CNMf0knEy X-Received: by 2002:a17:90a:1903:b0:286:e15a:377c with SMTP id 3-20020a17090a190300b00286e15a377cmr2511878pjg.40.1701944527681; Thu, 07 Dec 2023 02:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701944527; cv=none; d=google.com; s=arc-20160816; b=KsLvUeFNe5QqmMw+UGlD+S4kXnHy65mnseLkztZoqZVixOMcWJ8t1CyWSxpgYaeqk8 bZGhdA+UXzNYdddMMl8WCm1qmCGxH31YZa4pAvEsoQ0wFgfTUJpIZdSfnMP5a+tR9L2v E/G+GSHPe8p7Fua2sMHFhwLkg3aGQSfPrLuFr3pDNd+UPWkyHQdhYazq/JH8UOzCkrvt ROzLFZj/LE/6s81nbJthn62V+Ibigl4u4WdM0odd/KL1lLtrvFSEht9hUM13Rm3C3cb2 hsT0UImHiRp18WMcwkbHSb4oj5WHliUqUdC5hZPnoibP5HWcHw+udvA6HWd6bJlz3guX BWnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=91zJxyMiLuXuDa4taMzykZz7hooJ3lNC474rHgzwBdI=; fh=Jk6m7CXRxVrI6bhAhKDFAVrH8YqM64JRKqQS8KcSWPs=; b=vHGJZn3xwbAGhkQHjo5LlPgfXmRC2YFF2Jx8Tz515Yj39rq7PXaEDBi1r/stlCu7ls N7H0/jCFtH3j8LZXLLmQVM8zqkssx3suSdASjNezwcjloH0G26kR5qLCDWrS+YznrxSa JuiCD9oIqw9EgvTTtaXg5+uoYXGyxHdXWdLSBhKCYushYD27x69f6DmIex+ZdChucI+6 p3KN9l7icPg3aD2CUL5Z1/Ppuy8uMivf0DyMT6kwjRbXuGqpaOcOhw1P6MTQkh+QOs0t Buvi51r/dM5frH3fbdUUdIJA/RHJoEazF4xSZ8bxfWQFAooTN440HhuNc6LBTEpCwotK jsxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rReyZYmK; spf=pass (google.com: domain of linux-wireless+bounces-535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ci22-20020a17090afc9600b00286d452783esi844416pjb.5.2023.12.07.02.22.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 02:22:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rReyZYmK; spf=pass (google.com: domain of linux-wireless+bounces-535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E657A2840D7 for ; Thu, 7 Dec 2023 10:22:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE30B358AC; Thu, 7 Dec 2023 10:22:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rReyZYmK" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1D672FE31 for ; Thu, 7 Dec 2023 10:22:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B360C433C7; Thu, 7 Dec 2023 10:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701944523; bh=HfPeOFXnUyuobRLGh3W2dRopxfDShSw6rxFDu6ydUzg=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=rReyZYmKGctYOoiHMZyyNdgA7LMBvTHwPxA+WYebfYZ8c7PuP+33wgVihL3wZTFGe AbAS9cWfJnLjWet2QBj1gUOnijwDbfT4GUIYSvzbsbT255PP6bEuzmtks+jJkAF8WR o3ZPPMIzzd2YUwmgKztv/YzOI8krgGYit9I0j1NRBu7Gf9rDd6nQCRmmqYG2V4FDAk fs5Dr349vDUYLeFpOaIwh6VJNBFqGX8vDaJmFpQjTWXwXG356YQ5j5DQapcEWGCqrd BBkM8L+r5NTHbbOY8bQ7A+yh0oNXkzuDXvUxebvyhi/3wwQYtoEF4e40Qd3xeZz6Gk d1/8TTQqf/1jQ== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath12k: report tx bitrate for iw dev xxx station dump From: Kalle Valo In-Reply-To: <20231206134654.24662-1-quic_lingbok@quicinc.com> References: <20231206134654.24662-1-quic_lingbok@quicinc.com> To: Lingbo Kong Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170194452077.2749331.9096558532469392640.kvalo@kernel.org> Date: Thu, 7 Dec 2023 10:22:02 +0000 (UTC) Lingbo Kong wrote: > The tx bitrate of "iw dev xxx station dump" always show an invalid value > "tx bitrate: 6.0MBit/s". > > To address this issue, parse the tx complete report from firmware and > indicate the tx rate to mac80211. > > After that, "iw dev xxx station dump" show the correct tx bitrate such as: > tx bitrate: 104.0 MBit/s MCS 13 > tx bitrate: 144.4 MBit/s MCS 15 short GI > tx bitrate: 626.9 MBit/s 80MHz HE-MCS 6 HE-NSS 2 HE-GI 0 HE-DCM 0 > tx bitrate: 1921.5 MBit/s 160MHz HE-MCS 9 HE-NSS 2 HE-GI 0 HE-DCM 0 > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Lingbo Kong Fails to compile. Makes me wonder how did you even test this? drivers/net/wireless/ath/ath12k/mac.c:7743:20: error: conflicting types for 'ath12k_mac_he_gi_to_nl80211_he_gi' due to enum/integer mismatch; have 'enum nl80211_he_gi(u8)' {aka 'enum nl80211_he_gi(unsigned char)'} [-Werror=enum-int-mismatch] 7743 | enum nl80211_he_gi ath12k_mac_he_gi_to_nl80211_he_gi(u8 sgi) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/net/wireless/ath/ath12k/mac.c:9: drivers/net/wireless/ath/ath12k/mac.h:79:5: note: previous declaration of 'ath12k_mac_he_gi_to_nl80211_he_gi' with type 'u32(u8)' {aka 'unsigned int(unsigned char)'} 79 | u32 ath12k_mac_he_gi_to_nl80211_he_gi(u8 sgi); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[7]: *** [scripts/Makefile.build:243: drivers/net/wireless/ath/ath12k/mac.o] Error 1 make[6]: *** [scripts/Makefile.build:480: drivers/net/wireless/ath/ath12k] Error 2 make[5]: *** [scripts/Makefile.build:480: drivers/net/wireless/ath] Error 2 make[4]: *** [scripts/Makefile.build:480: drivers/net/wireless] Error 2 make[3]: *** [scripts/Makefile.build:480: drivers/net] Error 2 make[2]: *** [scripts/Makefile.build:480: drivers] Error 2 make[1]: *** [/home/kvalo/projects/atheros/ath10k/src/ath/Makefile:1913: .] Error 2 make: *** [Makefile:234: __sub-make] Error 2 Patch set to Changes Requested. -- https://patchwork.kernel.org/project/linux-wireless/patch/20231206134654.24662-1-quic_lingbok@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches