thread names
This commit is contained in:
parent
47acffe181
commit
8f4225038b
2 changed files with 8 additions and 2 deletions
|
|
@ -236,7 +236,7 @@ struct net_mgmt_event_static_handler {
|
|||
* @brief Helper to initialize a struct net_mgmt_event_callback properly
|
||||
* @param cb A valid application's callback structure pointer.
|
||||
* @param handler A valid handler function pointer.
|
||||
* @param mgmt_event_mask A mask of relevant events for the handler
|
||||
* @param mgmt_event_mask A mask of relevant events for the handler. Ensure all events share a layer code.
|
||||
*/
|
||||
#ifdef CONFIG_NET_MGMT_EVENT
|
||||
static inline
|
||||
|
|
|
|||
|
|
@ -1146,12 +1146,17 @@ static void handler(void)
|
|||
#endif
|
||||
|
||||
ctx = get_default_context();
|
||||
struct k_work_queue_config wq_cfg = {
|
||||
.name = "wpa_supplicant_wq",
|
||||
.no_yield = false,
|
||||
.essential = false
|
||||
};
|
||||
|
||||
k_work_queue_init(&ctx->iface_wq);
|
||||
k_work_queue_start(&ctx->iface_wq, iface_wq_stack,
|
||||
K_THREAD_STACK_SIZEOF(iface_wq_stack),
|
||||
CONFIG_WIFI_NM_WPA_SUPPLICANT_WQ_PRIO,
|
||||
NULL);
|
||||
&wq_cfg);
|
||||
|
||||
k_work_init(&ctx->iface_work, iface_work_handler);
|
||||
|
||||
|
|
@ -1214,6 +1219,7 @@ static int init(void)
|
|||
K_THREAD_STACK_SIZEOF(supplicant_thread_stack),
|
||||
(k_thread_entry_t)handler, NULL, NULL, NULL,
|
||||
CONFIG_WIFI_NM_WPA_SUPPLICANT_PRIO, 0, K_NO_WAIT);
|
||||
k_thread_name_set(&tid, "wpa_supplicant");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue