From patchwork Tue Apr 4 07:22:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Youghandhar Chintala X-Patchwork-Id: 7678 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2834674vqo; Tue, 4 Apr 2023 00:25:18 -0700 (PDT) X-Google-Smtp-Source: AKy350akG1bfrywlGBp5bxeRGBVm6qijlKYj7Qgmbsht6bLfOhsIVq/ns2Wjy2mu9TWjRcFdV9eb X-Received: by 2002:a05:6a20:be1e:b0:d6:91f5:2b10 with SMTP id ge30-20020a056a20be1e00b000d691f52b10mr1107319pzb.58.1680593118725; Tue, 04 Apr 2023 00:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680593118; cv=none; d=google.com; s=arc-20160816; b=rx2VRzEFR+VjFJOhIDrE4XOYHd3Q8OYqBWjOPGscTKY7Jiuoeca200YUoiwBskJ9jx t72/92BbNh/55sAcLwss+Lzbxt8sygIHqvd5Al8VxOm7EOWnA+UzJJE1FiUQ6YE0DTn/ CfAnodo/OJQHk60T/5qpj97/+iaSJSJe913vSWGyn0vneprGJ/WbB3rptpSDM9EsSBQb ISjmEWa/F7rFKFMy6X4XLZGDCNscbK/ctKBW7uQ6G0pqiOg9sXt5SAWe15x4L5TrxO0s jEW/ocxzOjqe47cWx0UYYqMAgeBygItxoZaqVbvTDxq1QxFep1/rxv1p0y+GnvRCPeG3 67Qg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=g5Ez/ME1s3fCg2PLZheuBcsYTG0hLfX78U6r4oUQSJQ=; b=l0WucnAtSz7cXw8J000i1czlmxPJUVAF8H34u/yo/YrM0/5ZD/mdLoPaZVST+aAdcl jUQxURf5wuoWSgfqGAoCoxYkFoU1WBOKw8ZPy1i/aChvhCKxnIOFwtxh5DzkyLNNL2xj HS0BoLluS6dBdPr5auh3/E0pnoe8Y/ws4yOpfAJG/OLFjGHfxzlbv9zwioO4BWvKTOIj Lb3Kgbk/X1Iy2gkUUz/CAqNu2bY4dPisj1cOcK20xgBJ0R+DjK//UwNqfFpTDsggSqz0 IsE2De/MwF93YeU3c4uDLZ60kZ7vdlMHPhb1vnM7/eqg8VZtp3o4MJXmqIlsKE2fo5WY sS4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bZ6+seTV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g32-20020a635220000000b0051254ec023esi9576174pgb.44.2023.04.04.00.25.06; Tue, 04 Apr 2023 00:25:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bZ6+seTV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233901AbjDDHXW (ORCPT + 99 others); Tue, 4 Apr 2023 03:23:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233883AbjDDHXT (ORCPT ); Tue, 4 Apr 2023 03:23:19 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3866F1FF5; Tue, 4 Apr 2023 00:23:12 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3343QV9B005827; Tue, 4 Apr 2023 07:23:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=g5Ez/ME1s3fCg2PLZheuBcsYTG0hLfX78U6r4oUQSJQ=; b=bZ6+seTV1ISjYgOhuaOwgof24t4wRPOITdKiHFCjoNqaNksQFjBT/j8cBbnleL6x0VTu mP2eEipgOTnEqU/WABjNTfkS2BqHPOIKY4Q2ogI6OMqqnmEi03T8IMbfXfjEoJ+EJJA9 tGglhm2WY4DS9gpO6BOllkqrBW8FLuu5FX3fcLnqZc3BAZ2tAFwTjPwratyKgjnhTVP0 smSv704YiON5JKSwYulEZ3Mm8iGi4wNBqG9X/wye/d+EIiYiPWxq6i62JINtb4rBJfWO DMaZnIRsJ9x8PDF6G0vfSO2MxPq9KK8SgmNEX9N9HgIsRLEVBvHjUFZRpKuNfnlb1xzZ FQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pqy6229nd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Apr 2023 07:23:07 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3347N7t7031543 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Apr 2023 07:23:07 GMT Received: from youghand-linux.qualcomm.com (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.986.42; Tue, 4 Apr 2023 00:23:04 -0700 From: Youghandhar Chintala To: CC: , , , Youghandhar Chintala Subject: [PATCH 0/3] wifi: ath11k: Fix incorrect signal avg in station dump on WCN6750 Date: Tue, 4 Apr 2023 12:52:31 +0530 Message-ID: <20230404072234.18503-1-quic_youghand@quicinc.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-GUID: XMyFJYNJRJWyiB5-YXX-YfwkSSm3IoS8 X-Proofpoint-ORIG-GUID: XMyFJYNJRJWyiB5-YXX-YfwkSSm3IoS8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-03_19,2023-04-03_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 bulkscore=0 mlxlogscore=365 phishscore=0 mlxscore=0 adultscore=0 impostorscore=0 clxscore=1011 malwarescore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304040066 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762229609833761208?= X-GMAIL-MSGID: =?utf-8?q?1762229609833761208?= Currently on WCN6750, the average signal printed in the station dump has invalid values. This is happening because of multiple reasons in the driver. This patches fixes this problem. Station dump without fixes: iw dev wlan0 station dump Station 2c:30:33:d2:93:3f (on wlan0) inactive time: 16428 ms rx bytes: 91417 rx packets: 642 tx bytes: 4715 tx packets: 31 tx retries: 59 tx failed: 0 beacon loss: 0 beacon rx: 294 rx drop misc: 22 signal: -16 [-21, -20] dBm signal avg: -95 dBm beacon signal avg: -15 dBm tx bitrate: 650.0 MBit/s VHT-MCS 7 80MHz short GI VHT-NSS 2 tx duration: 0 us rx bitrate: 6.0 MBit/s rx duration: 0 us authorized: yes authenticated: yes associated: yes preamble: long WMM/WME: yes MFP: no TDLS peer: no DTIM period: 2 beacon interval:100 short slot time:yes connected time: 64 seconds Station dump with fixes: iw wlan0 station dump Station 2c:30:33:d2:93:3f (on wlan0) inactive time: 4328 ms rx bytes: 10245 rx packets: 3211 tx bytes: 10245 tx packets: 102 tx retries: 72 tx failed: 0 beacon loss: 0 beacon rx: 1506 rx drop misc: 29 signal: -36 [-37, -45] dBm signal avg: -37 dBm beacon signal avg: -34 dBm tx bitrate: 866.7 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 2 tx duration: 0 us rx duration: 512633 us authorized: yes authenticated: yes associated: yes preamble: long WMM/WME: yes MFP: no TDLS peer: no DTIM period: 2 beacon interval:100 short slot time:yes Youghandhar Chintala (3): wifi: ath11k: Use proper API to get peer id for WCN6750 wifi: ath11k: Align RX MPDU info with the hardware for WCN6750 wifi: ath11k: Populate the signal average field properly drivers/net/wireless/ath/ath11k/hal_rx.h | 4 ++-- drivers/net/wireless/ath/ath11k/hw.c | 2 +- drivers/net/wireless/ath/ath11k/mac.c | 11 +++++++---- 3 files changed, 10 insertions(+), 7 deletions(-)