Skip to content

Commit

Permalink
[realtek-ambz] Fix crash after WiFi scan (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
hn authored Feb 26, 2024
1 parent cf52021 commit a1f8516
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cores/realtek-amb/arduino/libraries/WiFi/WiFiScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ static rtw_result_t scanHandler(rtw_scan_handler_result_t *result) {
if (cls->scanAlloc(last) < last) {
return RTW_SUCCESS;
}
last--;

scan->ap[last].ssid = strdup((char *)net->SSID.val);
scan->ap[last].auth = securityTypeToAuthMode(net->security);
Expand Down

0 comments on commit a1f8516

Please sign in to comment.