From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796092048; b=Ylk2mNSpA1rH4p/jZiaEAevjHXXwtt/sOPDWa2G2UIKfCc5le+X0zZlvFWfeFZBVbdoN dndHEXH31C/dXtsGxQ5noRp+tfY/6RofLORSESVzKRbFQtdFigdRd2Kb/625hpVDBxDLN EN05yisLPoDkE6FU0w0Y5aaZZlAssmc1CwCXWuK90+GDBOjJ/wbB+/eJ3kNRXrI6FYhle vmCdSDPLHBb2yZlOopiFFTvFoyhqHQiEAmELgb3CDVKzuUkpLmxOm9ZYYvXOTMKKEkcSI zZOc5wQEKAGiWhAQWi82jA+d2gQzoUSsPvYOhEB3td6VQs3Afxh4zd9SCgzyO/BG15w== 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-Forwarded-Encrypted: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=heS8FoFvtfMvunu/taoDdEoYV//nLusnQlLDapPuHxmd1klYs+uC/8xOLWPJ1NoaJ2Ke jnbR70t+HoGxr8Sjy/HuCWeU52YYrPG1x8M0JnVZT20kFOCi2QMSOXKlpYPtPorQUSKq5 6PEGSJI0TfL+/+pzzw9rvKz9Qw+i3OJCGKdTM6adUa08msAl3CFU1OvHarhUFcNeQ2IDn 7EmOupvJS8QwyJxFGr/AV2Sdtb+aFByRMVBBNaktZtIgskpbQejFwurpby6999X2SCfdi k5uYMVR0iX8UMBXEKiLaV2Zmk7MB1nS/VirioTBinGP63/nU7pBAs0yyX6Lfbff7jRQ== 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.54 Received: from mail-dl1-f54.google.com (mail-dl1-f54.google.com [74.125.82.54]) (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 EC3BE606A335 for ; Tue, 1 Dec 2026 02:27:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EC3BE606A335 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-dl1-f54.google.com with SMTP id a92af1059eb24-15ea896ddc8so18428624c88.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=B3TtsOiyX+s5L2Ky+uZ2ers/uU6JG1j5JIQsWTc6PY3eJJvVYu2Q96amJfBVjnQ2gE OagbQnwwlBYtZa160xLZfsKxBn2qjUMcr4hMXsBUTDMqo7Kn/sv+aWhXYC+IfMeVrYVv b/gHKNEZW5O4x6p6JdDKGzyaLH/UJt+xSUuisCclBa12P2RB9DEEtqHJJqDPEhVILHDO TFFIf22gjjPPeVwfYDF76V/E90mYY4Ze3oncPRrA0xuYFIalB7Zndzranm1d9K2LOnSz ctBVSWZEPbF3stxedFOe2gLCU8ptBtuLDf3FIxhuXfWZTRuv1pSOOgNQdW0XT9TAdR2j v4Iw== X-Forwarded-Encrypted: i=1; AL+hErGIV72uWE9+ZFTGJbLD1poCBhy5G1KC15ebcLNzt91vb+ZDsNEeQzbZhPb/T5k5LGJwDcOYdSsTSYiaYoxspw==@vger.kernel.org X-Gm-Message-State: APuU4Z+pluSW/lzLdE6x4NKVhlf+5uB1Yjb9i/o3J7S1WkJ7VdfqCcPO 5q4YmGhy1vl7t+36Q8eDq2evCAYclgScJmK/lu0kn2rYlAYCTtmpGR7v X-Gm-Gg: AZFdTZdVbRuQ2QdqbsozJujv3Ba4cwINj8AJl4fWloyAb4HfQ0USpn9qJFqEDoDbOD2 F+Zs6fPmoWREHtKigtEhT0LE6OsO/8hODZZ7JAmwxr3nA6il1iwJU2VQnyFv6JXteDXRfH0PYx6 EneLzkHOkqBgZIrFSt5Fr1WFFLc0nhzsh3PHuJAa+u9ZqIfDBQGdYwU7XyWCVrxiKakASHG1FE1 JEcyOEwtVFA6806bV6TyOd160nrYF1ttk4jPX5oBhvOe/mWnuArkXOvbDQmipkUxUXTuxeHaIwo 6Dnr9FHOWWKVbgaom22GtPzyIT++ajPYBN/MPLegQJJ1pvwOZBxCPgk26aN0W8uJaIREeoh8SZu LPBxGJs1t29MkAeZpImLZOeJIIiiv/0VAkMw2uTSe4X0gmOAukTSompd8+NS9lpUrOI6u5bctAP RwYIAvZ0MutxGXQ7/o10oCwx9W/LuZ8gv3QqzfQEWbUoeFTq2oUluvbTbB7gWBhxiHmUWZJwXSv PmlhfAUga6V9FzwZq2As3fWGyt8twYTEJ1teT2pB2paHiANbMSzFhPtO71Ez1VL9FLtT/0BHtJj t1/9jw/adRlgwErWB9CH/rrfFRs9wCNG87zAC8cCZKWRoFI= 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: linux-wireless@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