]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:14 +0000 (13:32 +0100)
commit1dc70897f1ac390c6a9aad146a41450c512616c6
tree484df5b9a75843af605d28a858ddcd0f628e23e1
parent60dcaf068f42e25ed723850fec5a5498ed21d699
wifi: rtw89: fix physts IE page check

[ Upstream commit 9e2f177de1bfb7d891bf38140bda54831ecef30d ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw89/phy.c