Public bug reported:

Package/series: linux-hwe-6.8 (Ubuntu Jammy); linux (Ubuntu Noble). Jammy's
linux-hwe-6.8 is derived from Noble's linux 6.8 source and contains the same
affected code.

Title: ath11k: station dump reports positive "signal avg" and "last ack
signal" (noise floor added to a dBm value)

[Impact]

On ath11k devices whose firmware reports the signal as a signed dBm byte
(WMI_TLV_SERVICE_HW_DB2DBM_CONVERSION_SUPPORT), the 6.8 kernel treats that byte 
as unsigned in the
average signal and ack signal paths and still adds ATH11K_DEFAULT_NOISE_FLOOR 
(-95 dB).
`iw dev <wlan> station dump` then shows impossible positive values, while 
`signal` itself is right
(6.8.0-149-generic):

    signal:          -63 [-70, -64] dBm
    signal avg:      98 dBm
    beacon signal avg: -57 dBm
    last ack signal: 102 dBm
    avg ack signal:  -97 dBm

98 is 193 - 95, where 193 (0xc1) is -63 dBm, and 102 is 197 - 95, where 197
(0xc5) is -59 dBm. "avg ack signal" is derived from the same incorrect ack
samples and is therefore unreliable: stock readings of 47 dBm (6.8.0-138) and
-36, -97 and 99 dBm (6.8.0-149) were seen; 99 dBm is impossible.

Monitoring tools and other userspace that read these values over nl80211 get 
wrong numbers. The
patches below change only reported station statistics, not how frames are sent 
or received. Normal
boot/runtime testing with both stock and patched modules completed 60 gateway 
pings without loss.

Seen on: Dell XPS 15 9500, Qualcomm QCA6390 [17cb:1101] (subsystem 1a56:a501), 
ath11k_pci,
firmware 0x101c06cc (build 2020-06-24), Ubuntu 22.04.5, 6.8.0-138-generic and 
6.8.0-149-generic.

[Fix]

Two upstream commits, in mainline since v6.11 and in 6.12.y, not tagged
for stable:

- 94f228ac4f5b "wifi: ath11k: fix ack signal strength calculation"
- aadeee47e9d7 "wifi: ath11k: modify the calculation of the average signal 
strength in station mode"

Both add the noise floor only when the firmware does not report dBm, as the 
driver already does for
`signal`. 94f228ac4f5b also reads the ack RSSI from the firmware as a signed 
byte (s8).

Both apply as-is to the ath11k sources of linux-hwe-6.8
6.8.0-149.149~22.04.1.

Backports for 6.6.y and 6.1.y have been sent to [email protected]:

- request: 
https://lore.kernel.org/stable/cantw0ypcrw2+baqvkwq6boy2eudk+d47axuo1zuwz1vaywy...@mail.gmail.com/
- 6.6.y series: 
https://lore.kernel.org/stable/[email protected]/
- 6.1.y series: 
https://lore.kernel.org/stable/[email protected]/

[Test Plan]

On an affected ath11k station (QCA6390 or WCN6855) running the proposed
kernel package:

1. Record `uname -r`.
2. Connect to an access point, and pass some traffic (for example `ping -c 30 
<gateway>`).
3. Run `iw dev <wlan> station dump` and attach the output.

Without the fix, "signal avg" and "last ack signal" are positive. With it, 
"signal avg",
"last ack signal" and "avg ack signal" are negative, plausible dBm values. The 
averages may lag recent
samples, and the ack signal, measured at this station on the access point's 
acks, need not match
"signal".

Tested on the QCA6390 above with 6.8.0-149-generic: ath11k built from the 
linux-hwe-6.8
6.8.0-149.149~22.04.1 source, with and without the two commits, against the 
installed headers. The
module built without them has the same srcversion as the stock module. The 
patched module was loaded
at boot (from /lib/modules/6.8.0-149-generic/updates/); the two readings are 
from separate boots, with
the same access point and channel:

    station dump        stock 6.8.0-149   with the two commits
    signal              -63 dBm           -63 dBm
    signal avg           98 dBm           -61 dBm
    beacon signal avg   -57 dBm           -57 dBm
    last ack signal     102 dBm           -60 dBm
    avg ack signal      -97 dBm           -60 dBm

With the patched module, three station dumps 15 s apart gave "signal avg" -61, 
-61 and -60 dBm,
"last ack signal" -60, -61 and -60 dBm, and "avg ack signal" -60, -59 and -57 
dBm; 60 pings to the
gateway had no loss. The kernel log showed no ath11k operational errors beyond 
the expected
out-of-tree-module and signature-verification taint warnings. Upstream, 
94f228ac4f5b was tested on
WCN6855 and QCN9074, and aadeee47e9d7 on WCN6855. I can test a proposed kernel 
package.

[Where problems could occur]

The average signal change only affects firmware that reports dBm. The ack 
signal change affects both
TX completion paths (HTT and TQM) on all firmware: it reads the firmware's 
8-bit ack RSSI as signed, and
adds the noise floor only for firmware that does not report dBm. A mistake 
would show up as missing or
wrong "last ack signal" and "avg ack signal" values on either kind of firmware. 
Whether a frame was
acked, and the frames themselves, are not changed.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-6.8.0-149-generic 6.8.0-149.149~22.04.1
ProcVersionSignature: Ubuntu 6.8.0-149.149~22.04.1-generic 6.8.12
Uname: Linux 6.8.0-149-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.10
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  henryzhang62   1377 F.... pulseaudio
 /dev/snd/pcmC0D0p:   henryzhang62   1377 F...m pulseaudio
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Nov 30 19:29:47 2026
InstallationDate: Installed on 2025-09-06 (450 days ago)
InstallationMedia: Ubuntu 22.04.5 LTS "Jammy Jellyfish" - Release amd64 
(20240911)
MachineType: Dell Inc. XPS 15 9500
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.8.0-149-generic 
root=UUID=8c967d3c-3307-4780-b578-8d67ddc760d1 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-6.8.0-149-generic N/A
 linux-backports-modules-6.8.0-149-generic  N/A
 linux-firmware                             20220329.git681281e4-0ubuntu3.42
SourcePackage: linux-hwe-6.8
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/26/2025
dmi.bios.release: 1.40
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.40.0
dmi.board.name: 0XWT2F
dmi.board.vendor: Dell Inc.
dmi.board.version: A02
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: 
dmi:bvnDellInc.:bvr1.40.0:bd11/26/2025:br1.40:svnDellInc.:pnXPS159500:pvr:rvnDellInc.:rn0XWT2F:rvrA02:cvnDellInc.:ct10:cvr:sku097D:
dmi.product.family: XPS
dmi.product.name: XPS 15 9500
dmi.product.sku: 097D
dmi.sys.vendor: Dell Inc.

** Affects: linux-hwe-6.8 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178505

Title:
  ath11k: station dump reports positive "signal avg" and "last ack
  signal" (noise floor added to a dBm value)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-6.8/+bug/2178505/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to