Return proper result for createInterface call 50/242150/1
authorShagun Garg <shagun1.garg@samsung.com>
Mon, 24 Aug 2020 13:04:39 +0000 (18:34 +0530)
committerShagun Garg <shagun1.garg@samsung.com>
Mon, 24 Aug 2020 13:09:41 +0000 (18:39 +0530)
If CreateInterface fails, proper result is not being sent to caller function.
This can lead to improper state being set at activate function

Change-Id: I7c75eb459bfc2fffa9920c822bb5825cb243c640

plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c

index acfbfbe1d7df5f8ac24a8cb66f3fc231a89eacba..4281815d7b11a992916d6c96a308ce64a03f8f26 100644 (file)
@@ -3626,7 +3626,7 @@ static int _ws_create_interface(const char *iface_name, handle_reply function, v
                WDP_LOGD("Succeeded to CreateInterface");
 
        __WDP_LOG_FUNC_EXIT__;
-       return 0;
+       return res;
 }
 
 static int _ws_get_interface(const char *iface_name, handle_reply function, void *user_data)