summaryrefslogtreecommitdiff
path: root/gsupplicant/supplicant.c
diff options
context:
space:
mode:
authorAbhishek Sansanwal <abhishek.s94@samsung.com>2018-12-13 10:51:58 +0530
committerAbhishek Sansanwal <abhishek.s94@samsung.com>2018-12-17 16:18:23 +0530
commit48e25ec7f60ffcba067708732298fd85a2b3ed47 (patch)
treec28087ff852425f2cfa0e5914982ad8f7e16d26f /gsupplicant/supplicant.c
parentbf7dbf8354f076ec768ae24e61d6fb1e46c623af (diff)
downloadconnman-48e25ec7f60ffcba067708732298fd85a2b3ed47.tar.gz
connman-48e25ec7f60ffcba067708732298fd85a2b3ed47.tar.bz2
connman-48e25ec7f60ffcba067708732298fd85a2b3ed47.zip
Added dbus method to get whether 5Ghz band is supportedsubmit/tizen/20181217.121131accepted/tizen/unified/20181218.063104
Change-Id: Ib3b189615648a35aa876eab3e3f61c47ac0c1e68 Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Diffstat (limited to 'gsupplicant/supplicant.c')
-rw-r--r--gsupplicant/supplicant.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index e7dfcb27..bafe478e 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -214,6 +214,7 @@ struct _GSupplicantInterface {
GSupplicantNetwork *current_network;
struct added_network_information network_info;
#if defined TIZEN_EXT
+ dbus_bool_t is_5_0_Ghz_supported;
int disconnect_reason;
#endif
#if defined TIZEN_EXT_WIFI_MESH
@@ -1113,7 +1114,13 @@ static void interface_capability(const char *key, DBusMessageIter *iter,
if (max_scan_ssid < 2)
max_scan_ssid = 0;
interface->max_scan_ssids = max_scan_ssid;
+#if defined TIZEN_EXT
+ } else if (g_strcmp0(key, "Is5GhzSupported") == 0) {
+ dbus_bool_t is_5_0_Ghz_supported;
+ dbus_message_iter_get_basic(iter, &is_5_0_Ghz_supported);
+ interface->is_5_0_Ghz_supported = is_5_0_Ghz_supported;
+#endif
} else
SUPPLICANT_DBG("key %s type %c",
key, dbus_message_iter_get_arg_type(iter));
@@ -1202,6 +1209,16 @@ const char *g_supplicant_interface_get_ifname(GSupplicantInterface *interface)
return interface->ifname;
}
+#if defined TIZEN_EXT
+bool g_supplicant_interface_get_is_5_0_ghz_supported(GSupplicantInterface *interface)
+{
+ if (!interface)
+ return NULL;
+
+ return interface->is_5_0_Ghz_supported;
+}
+#endif
+
const char *g_supplicant_interface_get_driver(GSupplicantInterface *interface)
{
if (!interface)