driver: wifi: add esp event task name
When enabling shell and retrieving thread information, esp wifi event task name was empty. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
parent
136c377b55
commit
4d37aa828a
1 changed files with 3 additions and 1 deletions
|
@ -175,12 +175,14 @@ static int eth_esp32_dev_init(const struct device *dev)
|
||||||
{
|
{
|
||||||
esp_timer_init();
|
esp_timer_init();
|
||||||
|
|
||||||
k_thread_create(&esp_wifi_event_thread, esp_wifi_event_stack,
|
k_tid_t tid = k_thread_create(&esp_wifi_event_thread, esp_wifi_event_stack,
|
||||||
CONFIG_ESP32_WIFI_EVENT_TASK_STACK_SIZE,
|
CONFIG_ESP32_WIFI_EVENT_TASK_STACK_SIZE,
|
||||||
(k_thread_entry_t)esp_wifi_event_task, NULL, NULL, NULL,
|
(k_thread_entry_t)esp_wifi_event_task, NULL, NULL, NULL,
|
||||||
CONFIG_ESP32_WIFI_EVENT_TASK_PRIO, K_INHERIT_PERMS,
|
CONFIG_ESP32_WIFI_EVENT_TASK_PRIO, K_INHERIT_PERMS,
|
||||||
K_NO_WAIT);
|
K_NO_WAIT);
|
||||||
|
|
||||||
|
k_thread_name_set(tid, "esp_event");
|
||||||
|
|
||||||
wifi_init_config_t config = WIFI_INIT_CONFIG_DEFAULT();
|
wifi_init_config_t config = WIFI_INIT_CONFIG_DEFAULT();
|
||||||
esp_err_t ret = esp_wifi_init(&config);
|
esp_err_t ret = esp_wifi_init(&config);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue