From 111d0b10430601ea4653b2be3530b94dc9848ffd Mon Sep 17 00:00:00 2001 From: "chaehee.hong" Date: Fri, 29 Sep 2017 20:29:03 +0900 Subject: [PATCH] Remove the mutex use in wifi_linkdown_event_func - Quix fix for hanging up during wifi mode change - Remove mutex lock/unlock to prevent lock up --- framework/src/wifi_manager/wifi_manager.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/framework/src/wifi_manager/wifi_manager.c b/framework/src/wifi_manager/wifi_manager.c index 935489a18d..bb40810d44 100644 --- a/framework/src/wifi_manager/wifi_manager.c +++ b/framework/src/wifi_manager/wifi_manager.c @@ -207,7 +207,6 @@ static void wifi_linkdown_event_func(void) // wifi_manager_init() creates the callback handler and deinit() joins the callback handler. wifi_manager_cb_s *wifi_cb = g_manager_callback; - wifi_mutex_acquire(w_info_mutex, WIFI_UTILS_FOREVER); if (g_manager_info.mode == STA_MODE) { nvdbg("WIFI DISCONNECTED AP - STA MODE"); @@ -215,7 +214,6 @@ static void wifi_linkdown_event_func(void) g_manager_info.ip4_address[0] = '\0'; g_manager_info.rssi = 0; wifi_status_set(AP_DISCONNECTED); - wifi_mutex_release(w_info_mutex); if (wifi_cb != NULL && wifi_cb->sta_disconnected != NULL) { wifi_cb->sta_disconnected(); @@ -225,7 +223,6 @@ static void wifi_linkdown_event_func(void) } else if (g_manager_info.mode == SOFTAP_MODE) { nvdbg("DISCONNECTED FROM CLIENT - SOFT AP MODE"); wifi_status_set(CLIENT_DISCONNECTED); - wifi_mutex_release(w_info_mutex); if (wifi_cb != NULL && wifi_cb->softap_sta_left != NULL) { wifi_cb->softap_sta_left();