rtw88: wow: fix size access error of probe request
authorChin-Yen Lee <timlee@realtek.com>
Wed, 28 Jul 2021 01:43:35 +0000 (09:43 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 21 Aug 2021 19:19:15 +0000 (22:19 +0300)
commit69c7044526d984df672b8d9b6d6998c34617cde4
tree2eca361e60dd8a879e217601b4bad4b6a8bc74ee
parent4bac10f2de22ebe2d1ca47f8155a333ad669398a
rtw88: wow: fix size access error of probe request

Current flow will lead to null ptr access because of trying
to get the size of freed probe-request packets. We store the
information of packet size into rsvd page instead and also fix
the size error issue, which will cause unstable behavoir of
sending probe request by wow firmware.

Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210728014335.8785-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/fw.c
drivers/net/wireless/realtek/rtw88/fw.h