From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9DA7606A325 for ; Tue, 1 Dec 2026 02:27:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=HH+tn2Pl; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Mo5ht2Bx DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=xbKKmiWsPN/rZxls/QCbURAtye+C2NFIm8W1vpEb2kI=; b=HH+tn2PlWyjZvT xbedvWwBr83hPUca6N/fdW2eMxgxfmuRy0AVzOdk2wkeKt7wBNs8f9v+v7WHezCaabBWal38vw4dH iLaQQ2jjBIHhKv18OvdwqTEKDq1fMjK0c+0sDUBAjifv9sZrby5SGG7jrUaf0fiJv8JO+7hWFkPwh NFsBMLXdi9rdtpRW9H2Fn1T5lQp59kBfRc0PtRoYOP2Hv0uq2jZIsJUQeYhUR1iBAcVFdQTRgt9um 5uUjNhRd9CEdyO9xFj8lQYnQ5Lx6yCaH1UKI9+g0ARHRvuISKA1Lt5C3aeOrBwqRgVoUnoRaUS+yi LwzSU83BjZXCxfV0Y5/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYDac-00000006JzV-18DM; Tue, 01 Dec 2026 02:27:30 +0000 Received: from mail-dy1-x132d.google.com ([2607:f8b0:4864:20::132d]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYDaa-00000006Jxg-1PL2 for ath11k@lists.infradead.org; Tue, 01 Dec 2026 02:27:29 +0000 Received: by mail-dy1-x132d.google.com with SMTP id 5a478bee46e88-386b8f2f671so6653794eec.1 for ; Mon, 30 Nov 2026 18:27:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796092047; x=1796696847; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xbKKmiWsPN/rZxls/QCbURAtye+C2NFIm8W1vpEb2kI=; b=Mo5ht2BxRek/VsOLJoc4Op7g8zkXJYmAQ7uV8liw6BizyfOkOp80gz41KPnoGC4V0D Hg7X9YVYxyyyl0phuzBdBddWekPxS8G86pdohDmvQZIVQZbxCxb3y2Y0Ahd5M5bKizLn rJgr/ss+qHPXc5rCTClYRkpdOgsj3RTLL6tPH70OOTzPqPDeaJWVHn/UmviN8nAxJKzV dVxu6SQWpYLmOKhKoHqDtpogm8BQI59ZslePqoUrRsqDzniPitaSIXguaQZ9sxGv+JAW 62AW3duyB5/p3AGNwoPcg1mGLXm3vCsGuogY9AiyeYwpTRGajdKjpSELyL9aGXiTksdw K4LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796092047; x=1796696847; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=xbKKmiWsPN/rZxls/QCbURAtye+C2NFIm8W1vpE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4LfhP/9QpVKCFrp5qqkJsPAtZ9d/h96CmErzjSLhiR B8Kld8z4rqkZy5EowONVZdfDtRB8iQsBr4WUx9CRKx+wJ+7GkfY6FEb0wOtHFuss2szs5csMG8J kH2/kNCuqdeS5GZbxw0YCBOSiExFXWO/NHiZfZOSqeuvDGs= X-Received: by 2002:a05:7301:da86:b0:386:d481:8160 with SMTP id 5a478bee46e88-386d48183aemr15739129eec.37.1796092046964; Mon, 30 Nov 2026 18:27:26 -0800 (PST) Received: from henryzhang62-XPS-15-9500.. ([24.7.106.8]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385d2b93dd9sm116475958eec.24.2026.11.30.18.27.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 18:27:26 -0800 (PST) From: Henry Zhang To: stable@vger.kernel.org Cc: Henry Zhang , greg@kroah.com, jjohnson@kernel.org, quic_lingbok@quicinc.com, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org Subject: [PATCH 6.6.y 0/2] wifi: ath11k: fix ack and average signal strength Date: Mon, 30 Nov 2026 18:27:19 -0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: <2026112814-habitable-falsify-b2ab@gregkh> References: <2026112814-habitable-falsify-b2ab@gregkh> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_182728_378748_083917C3 X-CRM114-Status: GOOD ( 10.26 ) X-Spam-Score: -1.9 (-) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Backports of two ath11k fixes from mainline (v6.11), as requested in: https://lore.kernel.org/stable/2026112814-habitable-falsify-b2ab@gregkh/ 94f228ac4f5b ("wifi: ath11k: fix ack signal strength calculation") aadeee47e9d7 ("wifi: ath11k: modify the calculation of the average signal strength in station mode") On firmware that reports signal in dBm, 6.6.y adds the noise floor to an unsigned ack signal and to the average signal, so "iw station dump" reports incorrect values, including impossible positive values. Both commits apply to 6.6.y as-is. Testing: - A full x86_64 kernel and modules build on top of v6.6.163 completed with CONFIG_ATH11K=m and CONFIG_ATH11K_PCI=m. A separate W=1 ath11k build had the same one pre-existing debugfs warning before and after the series, with no errors. - Runtime-tested the same code changes on a QCA6390 (hw2.0, fw 0x101c06cc) with Ubuntu 6.8.0-149. The stock and patched ath11k modules were built from the same Ubuntu source. The stock module's srcversion matched the installed running module, and the patched module's srcversion matched the module loaded at boot. - The affected calculations and field declarations in that Ubuntu source match 6.6.y; surrounding source differences do not affect the patched code. I have not booted a 6.6.y kernel. Representative station dumps from separate boots, using the same AP and frequency: station dump stock with the two commits signal -63 dBm -63 dBm signal avg 98 dBm -61 dBm last ack signal 102 dBm -60 dBm avg ack signal -97 dBm -60 dBm (Beacon signal average was -57 dBm in both boots. Both boots also completed 60 gateway pings with no packet loss.) Lingbo Kong (2): wifi: ath11k: fix ack signal strength calculation wifi: ath11k: modify the calculation of the average signal strength in station mode drivers/net/wireless/ath/ath11k/dp_tx.c | 16 ++++++++++++---- drivers/net/wireless/ath/ath11k/dp_tx.h | 4 ++-- drivers/net/wireless/ath/ath11k/hal_tx.h | 4 ++-- drivers/net/wireless/ath/ath11k/mac.c | 7 +++++-- 4 files changed, 21 insertions(+), 10 deletions(-) -- 2.34.1