aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/realtek/rtw88/fw.h
diff options
context:
space:
mode:
authorChin-Yen Lee <timlee@realtek.com>2021-07-28 09:43:35 +0800
committerKalle Valo <kvalo@codeaurora.org>2021-08-21 22:19:15 +0300
commit69c7044526d984df672b8d9b6d6998c34617cde4 (patch)
tree2eca361e60dd8a879e217601b4bad4b6a8bc74ee /drivers/net/wireless/realtek/rtw88/fw.h
parentrtw88: wow: report wow reason through mac80211 api (diff)
downloadlinux-69c7044526d984df672b8d9b6d6998c34617cde4.tar.xz
linux-69c7044526d984df672b8d9b6d6998c34617cde4.zip
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
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/fw.h')
-rw-r--r--drivers/net/wireless/realtek/rtw88/fw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/fw.h b/drivers/net/wireless/realtek/rtw88/fw.h
index ecb8eba59cd7..64dcde35a021 100644
--- a/drivers/net/wireless/realtek/rtw88/fw.h
+++ b/drivers/net/wireless/realtek/rtw88/fw.h
@@ -147,6 +147,7 @@ struct rtw_rsvd_page {
u8 page;
bool add_txdesc;
struct cfg80211_ssid *ssid;
+ u16 probe_req_size;
};
enum rtw_keep_alive_pkt_type {