wifi: rtw89: fix physts IE page check
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 18 Nov 2022 04:23:22 +0000 (12:23 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 22 Nov 2022 10:16:22 +0000 (12:16 +0200)
commit9e2f177de1bfb7d891bf38140bda54831ecef30d
treef359f1b130f7031de3f96ac4d7521af24b55a44d
parentac3a9f1838d8f5e5f9c8b6e2582b65c48a1e7bc1
wifi: rtw89: fix physts IE page check

The index RTW89_PHYSTS_BITMAP_NUM is not a valid physts IE page.
So, fix the check condition.

Fixes: eb4e52b3f38d ("rtw89: fix incorrect channel info during scan")
Signed-off-by: Zong-Zhe Yang <kevin_yang@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/20221118042322.26794-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/phy.c