Fix SVACE issue @SVACE ID WGID: 30779 & 30802 30/158130/4
authorManeesh Jain <maneesh.jain@samsung.com>
Mon, 30 Oct 2017 04:26:07 +0000 (09:56 +0530)
committerManeesh Jain <maneesh.jain@samsung.com>
Thu, 2 Nov 2017 08:34:34 +0000 (14:04 +0530)
Change-Id: I183d2e9958bc0278f2d0eff12efbcab07a2148d1
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
plugins/wifi.c

index 36f7fce..b7e37a1 100755 (executable)
@@ -530,6 +530,11 @@ static void register_peer_service_cb(int result,
        struct wifi_data *wifi = g_supplicant_interface_get_data(iface);
        struct peer_service_registration *reg_data = user_data;
 
+#if defined TIZEN_EXT
+       if (!wifi)
+               return;
+#endif
+
        DBG("");
 
        if (result == 0)
@@ -3318,7 +3323,10 @@ static void peer_found(GSupplicantPeer *peer)
        struct connman_peer *connman_peer;
        const char *identifier, *name;
        int ret;
-
+#if defined TIZEN_EXT
+       if (!wifi)
+               return;
+#endif
        identifier = g_supplicant_peer_get_identifier(peer);
        name = g_supplicant_peer_get_name(peer);
 
@@ -3371,6 +3379,11 @@ static void peer_changed(GSupplicantPeer *peer, GSupplicantPeerState state)
        struct connman_peer *connman_peer;
        const char *identifier;
 
+#if defined TIZEN_EXT
+       if (!wifi)
+               return;
+#endif
+
        identifier = g_supplicant_peer_get_identifier(peer);
 
        DBG("ident: %s", identifier);
@@ -3449,6 +3462,11 @@ static void peer_request(GSupplicantPeer *peer)
        struct connman_peer *connman_peer;
        const char *identifier;
 
+#if defined TIZEN_EXT
+       if (!wifi)
+               return;
+#endif
+
        identifier = g_supplicant_peer_get_identifier(peer);
 
        DBG("ident: %s", identifier);