wifi: rtw89: parse PHY status only when PPDU is to_self
authorEric Huang <echuang@realtek.com>
Wed, 5 Oct 2022 08:32:08 +0000 (16:32 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 11 Oct 2022 16:45:19 +0000 (19:45 +0300)
commit0935bb1527d711b1af8e89d4ba200c302fb5ab2b
tree139b7bb350f73a34b13e95920426a3c9dd222228
parent127da1aa61859c1eb27d7fc2d5b936e9e528815d
wifi: rtw89: parse PHY status only when PPDU is to_self

Without this fix, some non-self packets are used to count CFO (center
frequency offset), and average CFO has unstable variation. Then, it causes
unexpected performance.

Signed-off-by: Eric Huang <echuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221005083212.45683-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c