Introduce w_info_mutex to protect g_manager_info of wifi_manager while limiting the...
authorSeongil Hahm <seongil.hahm@samsung.com>
Mon, 25 Sep 2017 10:14:00 +0000 (03:14 -0700)
committerSeongil Hahm <seongil.hahm@samsung.com>
Tue, 26 Sep 2017 08:54:57 +0000 (01:54 -0700)
commitf37cb00113cb053c5ba3759f6c8ace74eee2d50a
tree10e6ac3ebd6dcfab6e28788b063819c7b746f329
parentfe86fee933d0fae1fe60d7b5e6598fedfc9507a9
Introduce w_info_mutex to protect g_manager_info of wifi_manager while limiting the role of w_mutex to serializing wifi_manager APIs

1. By using this w_info_mutex, deadlock between wifi_manager and slsi_wifi callback is resolved.
2. Introduce additional wifi_manager status: WIFI_MODE_CHAING, WIFI_INITIALIZING, WIFI_DEINITIALIZING, and WIFI_FAILURE.
   In case of WIFI_FAILURE, app developers are requested to deinit and init wifi_manager.
3. wifi_manager_set_mode() returns WIFI_MANAGER_INVALID_ARGS when mode is softap without config.
apps/examples/testcase/ta_tc/wifi_manager/utc/utc_wifi_manager_main.c
framework/include/wifi_manager/wifi_manager.h
framework/src/wifi_manager/wifi_manager.c