Fix an issue where local MAC address is not updated properly 42/247742/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Thu, 15 Oct 2020 13:09:38 +0000 (22:09 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Mon, 16 Nov 2020 05:23:43 +0000 (14:23 +0900)
Change-Id: Iacd76126e064f37ed65f5d3b6cf99eda29b261a3
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/network_signal.c

index 653f0f23ca590db0215e46dd2b4b62a8671f33e1..bb1f68650348ed5c5b7555f7c2890937fc1500b7 100755 (executable)
@@ -40,6 +40,7 @@ struct cs_tid_info {
 static GSList *cs_tid_list = NULL;
 
 static int __net_dbus_get_bssid_list();
+static int __net_dbus_get_technology_states(network_info_s *network_info);
 
 //LCOV_EXCL_START
 static int string2state(const char *state)
@@ -133,6 +134,9 @@ static int __net_handle_wifi_power_rsp(network_info_s *network_info,
                network_info->wifi_state = WIFI_ON;
                event_data->Error = NET_ERR_NONE;
                WIFI_LOG(WIFI_INFO, "wifi state: WIFI_ON");
+
+               if (network_info->mac_address[0] == '\0')
+                       __net_dbus_get_technology_states(network_info);
        } else {
                network_info->wifi_state = WIFI_OFF;
                event_data->Error = NET_ERR_NONE;