int test_foreach_ipv6_address(void)
{
int rv = 0;
- int type;
+ int type = 0;
connection_type_e conn_type;
test_get_user_int("Input Connection Type(1: WiFi 2: Ethernet) :", &type);
Wlan->security_info.enc_mode = wifi_profile[i].enc_mode;
Wlan->passpoint = wifi_profile[i].passpoint;
Wlan->strength = wifi_profile[i].strength;
- if (wifi_profile[i].essid)
+ if (strlen(wifi_profile[i].essid) != 0)
g_strlcpy(Wlan->essid, wifi_profile[i].essid, NET_WLAN_ESSID_LEN);
- if (wifi_profile[i].bssid)
+ if (strlen(wifi_profile[i].bssid) != 0)
g_strlcpy(Wlan->bssid, wifi_profile[i].bssid, NET_MAX_MAC_ADDR_LEN);
Wlan->max_rate = wifi_profile[i].max_rate;
Wlan->frequency = wifi_profile[i].frequency;
#include "utc-connection-common.h"
+GMainLoop *g_pMainLoop;
+guint g_nTimeoutId;
+int g_CallbackRet;
+
+bool wifi_supported;
+bool telephony_supported;
+bool bt_tethering_supported;
+bool ethernet_supported;
+bool route_supported;
+bool all_features_not_supported;
+
+connection_profile_h profile_cellular;
+connection_profile_h profile_wifi;
+connection_profile_h profile_temp;
+connection_h connection;
+
gboolean test_connection_timeout_callback(gpointer data)
{
g_CallbackRet = CONNECTION_ERROR_OPERATION_FAILED;
#define FEATURE_ROUTE "http://tizen.org/feature/network.route"
#define CALLBACK_RETURN "callback return"
-GMainLoop *g_pMainLoop;
-guint g_nTimeoutId;
-int g_CallbackRet;
-
-bool wifi_supported;
-bool telephony_supported;
-bool bt_tethering_supported;
-bool ethernet_supported;
-bool route_supported;
-bool all_features_not_supported;
-
-connection_profile_h profile_cellular;
-connection_profile_h profile_wifi;
-connection_profile_h profile_temp;
-connection_h connection;
+extern GMainLoop *g_pMainLoop;
+extern guint g_nTimeoutId;
+extern int g_CallbackRet;
+
+extern bool wifi_supported;
+extern bool telephony_supported;
+extern bool bt_tethering_supported;
+extern bool ethernet_supported;
+extern bool route_supported;
+extern bool all_features_not_supported;
+
+extern connection_profile_h profile_cellular;
+extern connection_profile_h profile_wifi;
+extern connection_profile_h profile_temp;
+extern connection_h connection;
#define RUN_GMAIN_LOOP { \
g_pMainLoop = g_main_loop_new(NULL, false); \