Fix error return omission 71/280671/1 submit/tizen/20220902.085939
authorJaehyun Kim <jeik01.kim@samsung.com>
Fri, 2 Sep 2022 04:50:20 +0000 (13:50 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 2 Sep 2022 04:50:20 +0000 (13:50 +0900)
Change-Id: I66eb0b58512d9d6d7fe291c68b5a626cfeeb33cf
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/network-wifi-intf.c

index 147b5d8..9be52c6 100755 (executable)
@@ -82,6 +82,7 @@ static net_wifi_state_t __net_get_wifi_connection_state(network_info_t *network_
 
        int rv = _net_dbus_get_tech_status(network_info, NET_DEVICE_WIFI, &status);
        if (rv != NET_ERR_NONE) {
+               *net_error = (net_err_t)rv;
                __NETWORK_FUNC_EXIT__;
                return WIFI_UNKNOWN;
        }
@@ -99,6 +100,7 @@ static net_wifi_state_t __net_get_wifi_connection_state(network_info_t *network_
                        network_info->request_table[NETWORK_REQUEST_TYPE_CLOSE_CONNECTION].flag == TRUE)
                connection_state = WIFI_DISCONNECTING;
 
+       *net_error = NET_ERR_NONE;
        __NETWORK_FUNC_EXIT__;
        return connection_state;
 }