From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796092048; b=mzHf8OPsry2/fYNGt9krTQ7HrUENCqPObO8A49zHE/V379Nn67vI775tUxW7t9YM1nUQ hKOPXs3yRgrg5RC5MmWtCo2Ea0l9XXqj1nR9PcEFquT2DHOxvaPY9pJO8CXzRiRw57qPy ZjjEFeUPhtaq2ue/JA2jbZUaxz4KphYvminMquIFhwqI7Plx//EQ/0+xL/uQycvRAEy9I w1TKgn4m0HxZkDHJDj0tSuTR4WznZKaixqrmvX5Dc4KB4ai8+1NfnO3vPSHv6FqU70z9C Njh2SGGVj8o2efBLuBzXgQwHXYH/coCQpICSc6D9pt9RI4VfetBmEcQrh9L6xsA7ZUg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796092048; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-Id:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=xbKKmiWsPN/rZxls/QCbURAtye+C2NFIm8W1vpEb2kI=; b=YSfhOG2/EhRLirWcAqHqBCc/tPM2ETOLJDk6PBVeGe2FztizfOSjgkyqTa8BRQPJxtgZ fGGyyvu42ov0b0qZkWsXFNgJUPqoqJb3zkSt+Fh92D6Iqvgl6ZjPFj9BeAoLrdZobCIvq DccKhxMNvpYEC/LbEaOcbQhu7QQkaLOxeh7VV2CYRb3tTOZ1z7IYH06ISC++7NPa+JPt2 rZHC6d3aDWvATNIuzUKetk7oW5N9jWHaf+aDATSny1ESBQ8yrKvUz3MSYIIUOlV0/lAEM oW1+fvjHjgOWSzczvSl8e70KUT45L7YUa0/kDBQmgrTgXTgSCVcJWlH9hsqYSFy0xTQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=GMQhWoSL; arc=none smtp.remote-ip=74.125.82.180 Received: from mail-dy1-f180.google.com (mail-dy1-f180.google.com [74.125.82.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9912606A334 for ; Tue, 1 Dec 2026 02:27:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E9912606A334 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=GMQhWoSL Received: by mail-dy1-f180.google.com with SMTP id 5a478bee46e88-3863db981d4so15566603eec.0 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=vger.kernel.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=GMQhWoSLzPg1FUhYDOJpG0Hpvij4EeItfOFNQbC1wpPuzPXvroJPON5dyu0O0W4RLD RusPzjvumV0FFP+CUAq+Vg3eoxJDSyHyhniWJ+yUrI+V3bqpbZWy6U4rKeMTSTqdeRDZ NfLlx3uSwdlujy7E65GiU3oFnno1D/RvpYDVDyNj6Es2LiMGNRwXNMiX89wflI5KQ/ip J4+V9yF/MyRXAPqa+N4esbOIZ8i6U5v4lh2BbTh0t+P+EedVyvkEXyWKde6Pn8gXDK1H PchbLUmN/32GTcq2iPmi/XS1PvxRnkmXGzZpvj8JOaoq6+Qzr7zzjglJYHtDs5oXTacA Fp1A== 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+C2NFIm8W1vpEb2kI=; b=B0/YwOIlbmoB9CmFwUyEzXq2kJmf/Co6M5PrKJM7/iTrH/zfntiL/Sn21ZefbnYdjZ 56MeTbLx+Kmo9/W2WQGKobprMw7smpi77VkwNDRu4YQKz/UuaIAIV+9E3LFOm02s9OHd 8QCn9gAvilKZ57QF1lG2IV16oxTCWDht2ubzqvtJVEmrtKvyw7BdthgKGC//fP+VGtc9 LF3woGMVNCypPpfSMMf1yYNmOPNRgazPqxG3C42SgqCxLcNBH7G5LJduZfqr7Z8VvaCC OwfNnGfS/LLYs29dorKO2iZNCv0Eo/jh+9FrpyIOLKiwMVzbiiZcGv5LaF5QaR7t3i7t U0lQ== X-Gm-Message-State: APuU4Z9O39t4FIO30RnQ0bUYAuXoX2oHHkdT2u4wTUHKJAgE5JtK6ITv cpJMxDbuJZdwoerr+w0BLcTn8whTz70zys0b83djOwmTBYO+vVtgaI2lonO4jQ== X-Gm-Gg: AZFdTZfS2sDLupgfURmjSFbBa/mL6dO33orQfnScVvFzI/3qsEKYMkBHHqkgPN7EJPt 7rztD0Qa9ut1yUWkz865IvlqRE1V3S8igQU91kUkR39xFxOIVbkl5u5ZjdHbRaAr2TWEfJOsFKV rUXUyRb9+SUa+epg26yoF7bPXmVYIzopRMzjZSoJrQUaJYhUQyxzTseNGQ67fNcfx6IfjsHGvtg mn/BAdvg4gOLab3mmtM7sIUc1Kh9iRMfvrx43DC8XuT02IwrdawkDmf0Pk2FQPUtPnep6IqIa8g hAz7uNcEW2vmhMBvVvZMlaipQgKe5+ZwK1wobmPfxBSGyvHcCjTyy2fILRVO4gd4lCsWFKb67wR KMo/vbZprb5JRQfxvVGgIT8w42ogBW4FuAND9wCkaVPJ65nhJgBxmCtGQKVT+KpNde0czNZ+X8H YqdG6W4X/zS1jM3krl9T6LNXlUhqhUsJY6TCzTJ7okAZ3tg9z56JI0vhagiT07hdubF1a/GP9io dRnH4Qx5Yq3KXvuzOVRReMkfHlQFXQ1zspr/yML21zCdbN5mzQ2sBIY8qLgone468PmdmbDSnGT B4vpwRojXTuggJeSi0UK9ZZcA3ksIVut5kjdMzJeePcmHtg= 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-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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