summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2017-11-03 01:30:14 (GMT)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-11-03 01:30:14 (GMT)
commit29893040d7906f1f70960726b3037d1b363955ca (patch)
tree56752ccb616f0fdd660d6d2e69add512ed019f7e
parent311671f25c40a3b5fb0f340b47e785b814a0aaa4 (diff)
parent725cb891c4931016bbf1596af37fdfde71c86de4 (diff)
downloadconnman-accepted/tizen/unified/20171106.073053.zip
connman-accepted/tizen/unified/20171106.073053.tar.gz
connman-accepted/tizen/unified/20171106.073053.tar.bz2
Merge "Fix SVACE issue @SVACE ID WGID: 30779 & 30802" into tizensubmit/tizen/20171103.014532accepted/tizen/unified/20171106.073053
-rwxr-xr-xplugins/wifi.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 36f7fce..b7e37a1 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -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);