Skip to content

Commit 35e96b9

Browse files
Aditi-Lonkarespressif-bot
authored andcommitted
fix(wpa_supplicant): Add few fixes in WPS task
1 parent bc2354b commit 35e96b9

File tree

1 file changed

+6
-1
lines changed
  • components/wpa_supplicant/esp_supplicant/src

1 file changed

+6
-1
lines changed

components/wpa_supplicant/esp_supplicant/src/esp_wps.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1771,6 +1771,11 @@ int wps_task_deinit(void)
17711771
wps_rxq_deinit();
17721772
}
17731773

1774+
if (s_wps_data_lock) {
1775+
os_mutex_delete(s_wps_data_lock);
1776+
s_wps_data_lock = NULL;
1777+
}
1778+
17741779
return ESP_OK;
17751780
}
17761781

@@ -1803,7 +1808,7 @@ int wps_task_init(void)
18031808
}
18041809

18051810
os_bzero(s_wps_sig_cnt, SIG_WPS_NUM);
1806-
s_wps_queue = os_queue_create(SIG_WPS_NUM, sizeof(s_wps_queue));
1811+
s_wps_queue = os_queue_create(SIG_WPS_NUM, sizeof(ETSEvent));
18071812
if (!s_wps_queue) {
18081813
wpa_printf(MSG_ERROR, "wps task init: failed to alloc queue");
18091814
goto _wps_no_mem;

0 commit comments

Comments
 (0)