Since patch 2/3 and 3/3 is based on the first patch sent by Muhammad https://lore.kernel.org/linux-wireless/YcWK1jxnd3vGdmCq@debian-BULLSEYE-live-builder-AMD64/ I put them together in this patchset, so we don't miss it. The second patch is to enter idle mode by driver after hw_scan, and then it can save more power. Third patch is to fix memory overrun and leak that will lead kernel crash. Muhammad Usama Anjum (1): rtw88: check for validity before using a pointer Po-Hao Huang (2): rtw88: fix idle mode flow for hw scan rtw88: fix memory overrun and memory leak during hw_scan drivers/net/wireless/realtek/rtw88/fw.c | 40 ++++++++++++++----- drivers/net/wireless/realtek/rtw88/mac80211.c | 5 ++- drivers/net/wireless/realtek/rtw88/main.c | 16 +++++++- drivers/net/wireless/realtek/rtw88/main.h | 4 +- 4 files changed, 53 insertions(+), 12 deletions(-) -- 2.25.1