wifi: rtw89: consider RX info for WiFi 7 chips
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 27 Oct 2023 01:50:58 +0000 (09:50 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 30 Oct 2023 17:25:30 +0000 (19:25 +0200)
commite343face52b013e5d0ff6305ddf40c9838adfe75
tree37fe77369ca66b360300476fda3efedaa0bc9ba0
parent76d45f48e4fcf060675970829c7fde21e6e8a2f3
wifi: rtw89: consider RX info for WiFi 7 chips

For WiFi 7 chips, some fields and predefined length are changed, so
add them accordingly.

The mac_id field is used to identify peer that send a packet, and we can
use it to know RSSI and traffic from the peer. For WiFi 7 chips,
RXWD.mac_id of PPDU status packet is not set by hardware. Instead, we
should fill it by rxinfo_user[].mac_id of PPDU status content.

Also, filter out invalid reports to prevent warning messages keep showing.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231027015059.10032-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/txrx.h