mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
fix(wpa_supplicant): Add few fixes in WPS task
This commit is contained in:
parent
bc2354b1b8
commit
35e96b977b
@ -1771,6 +1771,11 @@ int wps_task_deinit(void)
|
||||
wps_rxq_deinit();
|
||||
}
|
||||
|
||||
if (s_wps_data_lock) {
|
||||
os_mutex_delete(s_wps_data_lock);
|
||||
s_wps_data_lock = NULL;
|
||||
}
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
@ -1803,7 +1808,7 @@ int wps_task_init(void)
|
||||
}
|
||||
|
||||
os_bzero(s_wps_sig_cnt, SIG_WPS_NUM);
|
||||
s_wps_queue = os_queue_create(SIG_WPS_NUM, sizeof(s_wps_queue));
|
||||
s_wps_queue = os_queue_create(SIG_WPS_NUM, sizeof(ETSEvent));
|
||||
if (!s_wps_queue) {
|
||||
wpa_printf(MSG_ERROR, "wps task init: failed to alloc queue");
|
||||
goto _wps_no_mem;
|
||||
|
Loading…
x
Reference in New Issue
Block a user