summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2017-01-12 05:02:44 (GMT)
committertaesub kim <taesub.kim@samsung.com>2017-01-12 05:02:47 (GMT)
commit63e23c35bd4e12eb311af284c459c4e782fa2a77 (patch)
tree10fb5f58e3f65693702c7acdbad7318943aa0638
parenta49d97e9195b58a7b8bab4f3af0ea0ca5ec158b2 (diff)
downloadconnman-63e23c35bd4e12eb311af284c459c4e782fa2a77.zip
connman-63e23c35bd4e12eb311af284c459c4e782fa2a77.tar.gz
connman-63e23c35bd4e12eb311af284c459c4e782fa2a77.tar.bz2
Fix for single channel scan in SelectNetworkrefs/changes/60/109860/1
Change-Id: I165fd22bab5ced4a383b0034da79a87712110636 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
-rwxr-xr-xgsupplicant/supplicant.c22
-rwxr-xr-xplugins/wifi.c3
2 files changed, 25 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index e9d6b9d..c596619 100755
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -4385,7 +4385,11 @@ static void interface_select_network_result(const char *error,
err = 0;
if (error) {
+#if defined TIZEN_EXT
+ SUPPLICANT_DBG("SelectNetwork errorFreq %s", error);
+#else
SUPPLICANT_DBG("SelectNetwork error %s", error);
+#endif
err = parse_supplicant_error(iter);
}
@@ -4403,9 +4407,15 @@ static void interface_select_network_params(DBusMessageIter *iter,
{
struct interface_connect_data *data = user_data;
GSupplicantInterface *interface = data->interface;
+#if defined TIZEN_EXT
+ GSupplicantSSID *ssid = data->ssid;
+#endif
dbus_message_iter_append_basic(iter, DBUS_TYPE_OBJECT_PATH,
&interface->network_path);
+#if defined TIZEN_EXT
+ dbus_message_iter_append_basic(iter, DBUS_TYPE_INT32, &ssid->freq);
+#endif
}
static void interface_add_network_result(const char *error,
@@ -4428,11 +4438,23 @@ static void interface_add_network_result(const char *error,
g_free(interface->network_path);
interface->network_path = g_strdup(path);
+#if defined TIZEN_EXT
+ SUPPLICANT_DBG(".Interface.SelectNetworkFreq");
+#endif
+
+#if defined TIZEN_EXT
+ supplicant_dbus_method_call(data->interface->path,
+ SUPPLICANT_INTERFACE ".Interface", "SelectNetworkFreq",
+ interface_select_network_params,
+ interface_select_network_result, data,
+ interface);
+#else
supplicant_dbus_method_call(data->interface->path,
SUPPLICANT_INTERFACE ".Interface", "SelectNetwork",
interface_select_network_params,
interface_select_network_result, data,
interface);
+#endif
return;
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 76a1d7a..c9d8c80 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -2168,6 +2168,9 @@ static void ssid_init(GSupplicantSSID *ssid, struct connman_network *network)
#if defined TIZEN_EXT
ssid->bssid = connman_network_get_bssid(network);
#endif
+#if defined TIZEN_EXT
+ ssid->freq = connman_network_get_frequency(network);
+#endif
if (connman_setting_get_bool("BackgroundScanning"))
ssid->bgscan = BGSCAN_DEFAULT;