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

index bc79340e3a3531d40382491c1bb5246c834237e7..b7421a833e0716e9738d6b207e3bac9f4e27e360 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;