mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix(wpa_supplicant): Add few fixes in WPS task
This commit is contained in:
@ -1771,6 +1771,11 @@ int wps_task_deinit(void)
|
|||||||
wps_rxq_deinit();
|
wps_rxq_deinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (s_wps_data_lock) {
|
||||||
|
os_mutex_delete(s_wps_data_lock);
|
||||||
|
s_wps_data_lock = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1803,7 +1808,7 @@ int wps_task_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
os_bzero(s_wps_sig_cnt, SIG_WPS_NUM);
|
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) {
|
if (!s_wps_queue) {
|
||||||
wpa_printf(MSG_ERROR, "wps task init: failed to alloc queue");
|
wpa_printf(MSG_ERROR, "wps task init: failed to alloc queue");
|
||||||
goto _wps_no_mem;
|
goto _wps_no_mem;
|
||||||
|
Reference in New Issue
Block a user