mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/wps_condition_chain_v5.1' into 'release/v5.1'
fix(wifi): Fix static analyzer warning for WPS code (v5.1) See merge request espressif/esp-idf!26494
This commit is contained in:
commit
55d3bc2d37
@ -1034,15 +1034,18 @@ int wps_sm_rx_eapol_internal(u8 *src_addr, u8 *buf, u32 len)
|
||||
|
||||
tmp = (u8 *)(ehdr + 1) + 1;
|
||||
ret = wps_process_wps_mX_req(tmp, plen - sizeof(*ehdr) - 1, &res);
|
||||
if (ret == ESP_OK && res != WPS_FAILURE && res != WPS_FRAGMENT) {
|
||||
if (res == WPS_FRAGMENT) {
|
||||
wpa_printf(MSG_DEBUG, "wps frag, silently exit", res);
|
||||
ret = ESP_OK;
|
||||
break;
|
||||
}
|
||||
if (ret == ESP_OK && res != WPS_FAILURE) {
|
||||
ret = wps_send_wps_mX_rsp(ehdr->identifier);
|
||||
|
||||
if (ret == ESP_OK) {
|
||||
wpa_printf(MSG_DEBUG, "sm->wps->state = %d", sm->wps->state);
|
||||
wps_start_msg_timer();
|
||||
}
|
||||
} else if (ret == ESP_OK && res == WPS_FRAGMENT) {
|
||||
wpa_printf(MSG_DEBUG, "wps frag, continue...");
|
||||
ret = ESP_OK;
|
||||
} else {
|
||||
ret = ESP_FAIL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user