Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2460999rdb; Wed, 21 Feb 2024 08:18:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVcYd+SPuUrklRnGu3zMox6ETHFTouM+VNm14lqWKwKUQZBDX+MKQz5c/KU6hfVckVz9i7xCZYkPe3bPWmdCGiyNVWUX/X5w8kC4KIT/A== X-Google-Smtp-Source: AGHT+IEnBFFtaVL9mB/cH1tz2K9tfqBmotSaJcEwGlCW4AlSgJ8M6BCkjt/7VbUQRfG5wOxjMXJK X-Received: by 2002:a17:906:254f:b0:a3e:5d4d:69e8 with SMTP id j15-20020a170906254f00b00a3e5d4d69e8mr9231294ejb.10.1708532282993; Wed, 21 Feb 2024 08:18:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708532282; cv=pass; d=google.com; s=arc-20160816; b=QgafdPOisG9bRv8PZ0s+hgb5InSBfgpgn31w1LwrBofnfTYYycXmgHdgqKRdL/lpc/ j+gseuBoYqsfgWa1onqy1g/Bo5846NeYCSBD1UChrf+iUjBfeUqq4uqxe1BUHsQNS952 XEZxOxFne99G0Tve54Mug7Mr1qJgiy7GHtAMHTFG4Mxze3AfmTwG9XYdr9vdrJcXW+/d 1aFgHV9kHVd0kATkUOtYZQs9L4XwEXWWinbNK0KTqeJRg7FGYD25mOhMWjc8oPj1QjHm hY3Wdju5h9n93EMG2KmOqJih8gQWkQenmFyjhtdrAI2JAH+DGuKRgEuOrgabwFtNdHNN le/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=E9x7Uwhdmnd48TDUfR/CdE7qrVONSVhDZQKKQRCQd8E=; fh=6u9khkvya3b0jWNr5WZXnBCj1yzRptR/u92Y5QpTmJg=; b=PNgPNvofMEsZmsVmIK1zYtXrRK8F4BFYNqIaVX2EVOTFODjRNXD4yLXlW83y9Tgish 7M5ibNh4+9y6cnlB+1gN1p3cHMtGncW/C2gdeGhycTuxI4GbSWi6FM+66Ld4MWq3QR+x CG3th4yDtTr6OXyomFQxeFmxXBYTsHZ//OUP6LY5Fr1RMcCuCaJEYX45TRn+pduLSqhy VZs6XTeG7elMwCDxxilU2zKu+iByrPRkiq/24nnMsNGE76pYG3phCcSSzd30dllBn7lz Vs2JEK5gIuhN9FDVJb3AawSQfltIAVZ6Ji5bIRWH1tj6u87egYfUUXjzCF3hQeQ+Z7T+ tKdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hGEmeeAd; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-3865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w15-20020a17090652cf00b00a3ea736fe61si2755583ejn.357.2024.02.21.08.18.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:18:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hGEmeeAd; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-3865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id B8AA51F24797 for ; Wed, 21 Feb 2024 16:18:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0986E8061A; Wed, 21 Feb 2024 16:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="hGEmeeAd" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 6D3807CF0F for ; Wed, 21 Feb 2024 16:17:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708532278; cv=none; b=idgCrfKC59PcVAeouja3G0cgvsxei57/P5w6BJNMH3ODPPTavWL8k5RNWJpK7YiCWjUulQWaELugd8Y0XA9MQS4Ivs0/c5pBoKu5MjoM7TlwNE4m666aIhAaWsIaA9tZ9m9lZaQknQzw3wk+TQPn7kpCGYr0qRHdUDQeWT0j7vg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708532278; c=relaxed/simple; bh=i1+fsmKeLXBz1NmSofkiKFOo+G/xzTx6f7QFa2/36IA=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=LgqGP2nNOnK1mfTpIgVxVRbVmCh84phx8LnDdnVRkwcBseJ06+qWwEL/4Bv6jwZaOddlQ7ywpe0dWQWLYgG1guiHSetX4sc/+phtRf0txzEFyScWClQyKHoAksPBf7wpUdGRyefMxFbFVG86T25s1ZUkYVJ5NxDRKuhs7OCs/fU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=hGEmeeAd; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41LCTQn9023911; Wed, 21 Feb 2024 16:17:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=E9x7Uwhdmnd48TDUfR/CdE7qrVONSVhDZQKKQRCQd8E=; b=hG EmeeAdw9P2yHpwqtLv7o/jcUmKH7TE6A+EWeF+GvZGdb00/TxYm6heccr5iKS4mi AUZzoKOTmwcrPeE1FcgC1Z447Seecctn0KDnD0jFh3GXJib9B3UBFu1H7b6tnmTm uG12KSpoa9GeHsJrrQK2hr0lSiGq34lgcyrYcaid/LL0UQA1z8mfkN9wHHqty4ZA GwBPSIwsgCdk5hsk/I2ksh+9LPR7SrecNM5KRnIb2A5aP/g2+fiImiDCkaW6Kkhv 1PCaDC4unJvnu7FImti80CqZQwxudJelTGhesDj8AhB66oFdqihDjxuV+fGYdSj7 h4Qz0CxM5KRWy77kt/aQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wd21s2fgh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 16:17:55 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41LGHsX0017171 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 16:17:54 GMT Received: from [10.110.34.22] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 21 Feb 2024 08:17:54 -0800 Message-ID: Date: Wed, 21 Feb 2024 08:17:54 -0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: ath12k: report signal for iw dev xxx station dump Content-Language: en-US To: Lingbo Kong , CC: References: <20240219111417.1185-1-quic_lingbok@quicinc.com> From: Jeff Johnson In-Reply-To: <20240219111417.1185-1-quic_lingbok@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: yFgbsa2aWVR9MsVkvyiFeUwAd61bmIKU X-Proofpoint-GUID: yFgbsa2aWVR9MsVkvyiFeUwAd61bmIKU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-21_03,2024-02-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 impostorscore=0 mlxscore=0 suspectscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=925 malwarescore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402210126 On 2/19/2024 3:14 AM, Lingbo Kong wrote: > The signal of "iw dev xxx station dump" always show 0 dBm. This is because > currently signal is only set in ath12k_mgmt_rx_event function, and not set > for rx data packet. So, change to get signal from firmware and report to > mac80211. > > After that, "iw dev xxx station dump" show the correct signal such as: > signal: -50 dBm > signal: -49 dBm > > 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 Acked-by: Jeff Johnson