Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
os/board/rtl8721csm: fix assert with wifi scan with ssid (Samsung#5963)
* In wifi driver, wifi scan process will exit directly when the driver fw state is "under scan" or "under wifi connection". Before this commit the "len" param in scan buf is not cleared in this case. It will make parse_scan_with_ssid_res() runs into app_scan_result_handler() many times with empty scan_result_report and cause the heap corruption issue. This commit reset scan buf to all 0 in wlan driver in this case to fix the assert issue. * previously when wpa3 sae auth fail, driver didn't change the fw state from "under wifi connection" to "not under wifi connection" immediately. This will lead to wifi scan is exited even though wifi connection already failed and completed. This commit adds reporting join status after wpa3 sae auth fail to change the driver fw state immediately in this case. Co-authored-by: gexuyan <[email protected]>
- Loading branch information