Skip to content

Commit

Permalink
os/board/rtl8721csm: fix assert with wifi scan with ssid (Samsung#5963)
Browse files Browse the repository at this point in the history
* 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
gexuyan and gexuyan authored Oct 23, 2023
1 parent 7ce7806 commit a79013b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions os/board/rtl8721csm/src/libs/RELEASE_NOTE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/* == "version" + "Realtek git version" + "compile date" + "compile time" == */

== version lib_wlan_ver_86d8cdd6570df0017ad857d4c03703651fd927bf_2023/10/18-20:09:56 ==
1. Add report join status after wpa3 sae auth fail

== version 791d4929b38ded90483a0a4d4a9527735d762f25_2023/10/12-11:13:59 ==
1. Fix wifi scan with ssid assert issue

== version 963c4339b726c186d3456cc23ea09b69f4c94bf6_2023/04/14-15:13:49 ==
1. Fix amsdu packets refree error, refree error is because the driver handles the first amsdu packet wrongly
2. add lock to prevent from accessing 0 address
Expand Down
Binary file modified os/board/rtl8721csm/src/libs/lib_wlan.a
Binary file not shown.
Binary file modified os/board/rtl8721csm/src/libs/lib_wlan_fpu.a
Binary file not shown.

0 comments on commit a79013b

Please sign in to comment.