On 11/22/2024 10:03 PM, Alex Shumsky wrote:
After commit 9a1590934d9a ("brcmfmac: correctly report average RSSI in station info") it is required from firmware to provide rx_lastpkt_rssi. If this field is not provided brcmfmac doesn't report any RSSI at all. Unfortunately some firmwares doesn't provide it. One example is firmware for BCM43455 found in Raspbberry Pi. See https://github.com/raspberrypi/linux/issues/4574 Fix it by falling back to rssi field if rx_lastpkt_rssi is not provided (like it was before 9a1590934d9a).
Sounds like a reasonable approach. However, I would like to learn more about the issue. Maybe it is a per-vendor issue so I am interested what the sta_info version is that we get from firmware. It is printed in brcmf_cfg80211_get_station() with brcmf_dbg(). You can make it a bphy_err() call instead or enable TRACE level debug messages in the driver.
Also would be good to know the firmware version and kernel version of the BCM43455.
Regards, Arend