wifi_manager: modify state changing in scanning.
wifi_manager manages it's internal information in
wifi_manager_info.c. However it doesn't update its state after
scanning is done. Because wifimgr_set_info wasn't called.
@@ -140,6 +140,9 @@ static char *wifimgr_state_str[] = {
do { \
g_manager_info.state = g_manager_info.prev_state; \
g_manager_info.prev_state = WIFIMGR_NONE; \
+ wifimgr_info_msg_s twmsg; \
+ twmsg.state = g_manager_info.state; \
+ wifimgr_set_info(WIFIMGR_STATE, &twmsg); \
} while (0)
#define TAG "[WM]"
