]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: debug: add beacon RSSI for debugging
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 27 Sep 2024 01:35:12 +0000 (09:35 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Sat, 5 Oct 2024 02:49:16 +0000 (10:49 +0800)
commit284939d7e87f0a79424412004473abbc8e8ddddf
tree168c30e40882542f2b609ca8bbbd1d6b0e8e9a94
parentad95bb3b92c65849a6101402197e2cbeb2910a4a
wifi: rtw89: debug: add beacon RSSI for debugging

In range test, the RSSI is helpful to check attenuation of cable and align
difference between environments. Since data packets can be transmitted with
different rate and power, the RSSI of all packets can be variant.
Oppositely beacon is transmitted with the same rate and power, so beacon
RSSI will be relatively invariant, and more helpful to diagnose problems.

The output of beacon RSSI in unit of dBm looks like:

  Beacon: 19 (-33 dBm), TF: 0

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240927013512.7106-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/debug.c
drivers/net/wireless/realtek/rtw89/phy.c