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 5C0FC606A31A for ; Tue, 1 Dec 2026 02:28:19 +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=uUVlX/oM; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=gPNBdljM; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=kiRYmh4A 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=jTlv/YMFu+a5+Dlrj7VjRUcQz44/u2DRZGGduJa+JCA=; b=uUVlX/oMoh2+G2 BIlmEls13UZQD80EMs+ZYbodTu6K39NtGSLrsChAYiOBAq31PQENz4a5x+ozBc8z/GXYl5+GnDS+U k/9B4x6oXV2CdSSXKr2fyAap3fOv+TREMoCtXASc7wio+nc+3FQnhKH5XSfjTAid3MnDJFuHI7n5z YmVo6ke522oeAN2D04kbxEXcnvhX0418Mr3IDqQIcTIhgN9iEZyes4Sz7epZaDxaOJUpyysnaASO8 LBLCKaFj437Fm1EkLQ3cnby9ZF9uxgwICbnDL4W8COs2sdPXsPgV7HRS4oH6iRhja8Fm0S0rNf6WC JDXQp0Q73jAnbtnSCUSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYDbO-00000006KOO-3g9C; Tue, 01 Dec 2026 02:28:18 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYDbN-00000006KNs-2h51 for ath11k@bombadil.infradead.org; Tue, 01 Dec 2026 02:28:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=jTlv/YMFu+a5+Dlrj7VjRUcQz44/u2DRZGGduJa+JCA=; b=gPNBdljMj7EDWVg9ONVVM+th0e wJigVXR3f8N9IEpe/9gj9p2lDb4unjlnJLKvYSJVt88EiqmwZHAJ2nfNhD2m0dCH7HMSlj1ktNIRm lGaneqDehAhOIF2HeLe21B1fu28PitNcnbBcx7apaEHMqHLmBDsm083pXeG+T+tYeHQBbsgcMQTo2 7pbdBHi/DYQEcw266T6WU34OYaFEOx1XrKaf+avJeUorfWytji7vhKglDmFWFMiSjOnWzFhoHqyua 8uM4pSVS0PL+dIUQVAMKGbw+THYKXbC1PPyYi9c8eG2DLv9dmM7iHCxaYubFO/vVrRjktLUgKNY6J RVYj2aGw==; Received: from mail-dy1-x132b.google.com ([2607:f8b0:4864:20::132b]) by desiato.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYDbE-0000000AZ6o-35tO for ath11k@lists.infradead.org; Tue, 01 Dec 2026 02:28:16 +0000 Received: by mail-dy1-x132b.google.com with SMTP id 5a478bee46e88-38644aedba1so18973678eec.0 for ; Mon, 30 Nov 2026 18:28:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796092084; x=1796696884; 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=jTlv/YMFu+a5+Dlrj7VjRUcQz44/u2DRZGGduJa+JCA=; b=kiRYmh4AXSwunkdJEXvTbWFbCM6EpBqCvdjJjqNfVSVJz28mwS76zomZeQmGWwRUrI OHMfFRQa3y6oRByWCz27lomPkx2FOU0xnX8sBrZTQiducxpWJKXw/UBrFJ6VBOASWvS8 aAlrApo3LbNHAuqACdoFdZJpSi7DoDDTBeexxVLfGtoN3N3cVDpRbJqlo1NAHN8pFwC/ A14Yc6L33mhCAs+W1be54KbrKIt+tG8IUJYx9lKXthjDGaJYrz9o5Wx6/ZTTipZnor/o 3hoTJAXdSEjhI32s2vnLzWRJYEIP6G8bZw+McXmVRr+A90HkdPCcnk/5QeZrlPeMeaxK knWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796092084; x=1796696884; 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=jTlv/YMFu+a5+Dlrj7VjRUcQz44/u2DRZGGduJa+JCA=; b=LcVpYUN+Wvoz6Ne0YlQveU6GOg2S3p54Z08L8nCaxYgPgW8/67jrtLPh6p+6ESHSmM JGU+/zoeBk1I7372z8wbYWAy0PbLzDTkzOGfUitqL782VhyM76TkGy6Pl2E/3OoNIXmm EqCnD/wCjTRnShED+E2FeCegrM5xrjVDUa56RQZjxmJ1HV9qi09dDKZ6lM/p9sL4W1tw Cm2qs3SaIW7OF2UZmpSi6B62HMNUQXv5Z++2LPH7Udsrcngm86HROhURlfnNjq+issLa TvYvncHQX2YYtF0ZXMcrw1LiYdUeF65f1/wI6BgXhfH5BHE9pNK0+jSv29fVwYKvD5xU WueA== X-Forwarded-Encrypted: i=1; AL+hErHgbR66FygtzNY9yVQWfZS+lWfgxsDW1E32l7xVe2BXdUpYRwyx51cMzNlLXwVfWsTYPk6L7b0=@lists.infradead.org X-Gm-Message-State: APuU4Z9QKWYWURy3On+/Hd7ArH0QrY2fq4S5hb7ZhkoMawyxR0UdswyR s99A4w6NGqeBZ9W7hNLQ7/ENlqQ4zAiU5BeYKDQg5rLQRY5La8moYJqs X-Gm-Gg: AZFdTZf9aQ2D+ti4mPFZSCmbLlwhLZxk8oQ2iNcq5kCLrq77YtwJYDepstv+CQW1Hcl 1HuO/v556T2JKEP/6KzK5oPV3Wtr/lrDy63KESdjxjHrXSHwwrZYraJGoxYqkUFZBOkrfNdb2t3 N9zHmns9A0gWvG6hHGCddwvVQTha2o5fu4ITymGlm1Xj7E1A5AeXmYZi9aYnmCb0CQXqTLgWhf6 p3Ou26E6B2FtZRAYBdPHqZX7qBFZWMdboV3PApCemTMhP+M0oLOztb8/qmSi/em9JP2g72Aq9lo pT7cCmd5HzYoMGV+fjf8wvZWzMEEmSwwcxeHL87RV8sU2qRKgrB47KkjeGdxMOKbapBYbJSUxkH oh4A9TM6DKmEJcptKoxUKYg3rcOs3u6wthAh6agRn6oNxtmyOG/NFJJSaQeBlhiL6IZ65cRboVN qMsGNh0fyBSPBSV1OnSg3HSQ65SctYcQ13MtTXSPtDFx9HgV3sgtrbQCmzbmccs1QrlLc0UamS2 0uWJQalHCtliwxlutjYIdmnVquoB2oFexuo6g/8aZTrAGVqFsa9p6Yo8CgfK+VorBDR8Hi78fDe 27KAivS2JfIZDWwTqJoMDHuQnosrgaY6lZvP8BpSmpkoI5c= X-Received: by 2002:a05:693c:8843:b0:386:b429:fe0 with SMTP id 5a478bee46e88-386b429175cmr23296266eec.16.1796092084417; Mon, 30 Nov 2026 18:28:04 -0800 (PST) Received: from henryzhang62-XPS-15-9500.. ([24.7.106.8]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385d2b93dd9sm116478427eec.24.2026.11.30.18.28.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 18:28:04 -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.1.y 0/2] wifi: ath11k: fix ack and average signal strength Date: Mon, 30 Nov 2026 18:27:57 -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-20261201_022813_623051_7727C72A X-CRM114-Status: GOOD ( 11.21 ) X-Spam-Score: 0.1 (/) 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.1.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. aadeee47e9d7 applies as-is. The 94f228ac4f5b backport omits the dp_tx.h Copyright-line change, which does not apply to 6.1.y; its code changes are identical to upstream. Testing: - A full x86_64 kernel and modules build on top of v6.1.193 completed with CONFIG_ATH11K=m and CONFIG_ATH11K_PCI=m. Separate W=1 ath11k builds before and after the series completed without warnings or 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.1.y; surrounding source differences do not affect the patched code. I have not booted a 6.1.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 | 2 +- drivers/net/wireless/ath/ath11k/hal_tx.h | 4 ++-- drivers/net/wireless/ath/ath11k/mac.c | 7 +++++-- 4 files changed, 20 insertions(+), 9 deletions(-) -- 2.34.1