Skip to content

Commit

Permalink
hostap: Fix crash in case supplicant init fails (zephyrproject-rtos#5)
Browse files Browse the repository at this point in the history
Remove uninitialized variable that is no longer needed, this causes
crash in case supplicant thread exits.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
  • Loading branch information
krish2718 committed Sep 18, 2023
1 parent 5fe02e0 commit 359cc1d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/hostap/src/supp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ LOG_MODULE_REGISTER(wpa_supplicant, LOG_LEVEL_DBG);
struct wpa_supplicant *wpa_s_0;

static void start_wpa_supplicant(void);
static struct k_sem quit_lock;

K_THREAD_DEFINE(wpa_s_tid,
CONFIG_WPA_SUPP_THREAD_STACK_SIZE,
Expand Down Expand Up @@ -184,6 +183,5 @@ static void start_wpa_supplicant(void)
#endif /* CONFIG_MATCH_IFACE */
os_free(params.pid_file);

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

0 comments on commit 359cc1d

Please sign in to comment.