Skip to content

Commit a339aba

Browse files
krish2718rlubos
authored andcommitted
hostap: Fix crash in case supplicant init fails (#5)
Remove uninitialized variable that is no longer needed, this causes crash in case supplicant thread exits. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 074daae commit a339aba

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

modules/hostap/src/supp_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ LOG_MODULE_REGISTER(wpa_supplicant, LOG_LEVEL_DBG);
2828
struct wpa_supplicant *wpa_s_0;
2929

3030
static void start_wpa_supplicant(void);
31-
static struct k_sem quit_lock;
3231

3332
K_THREAD_DEFINE(wpa_s_tid,
3433
CONFIG_WPA_SUPP_THREAD_STACK_SIZE,
@@ -184,6 +183,5 @@ static void start_wpa_supplicant(void)
184183
#endif /* CONFIG_MATCH_IFACE */
185184
os_free(params.pid_file);
186185

187-
k_sem_give(&quit_lock);
188186
wpa_printf(MSG_INFO, "wpa_supplicant_main: exitcode %d", exitcode);
189187
}

0 commit comments

Comments
 (0)