From 48e25ec7f60ffcba067708732298fd85a2b3ed47 Mon Sep 17 00:00:00 2001 From: Abhishek Sansanwal Date: Thu, 13 Dec 2018 10:51:58 +0530 Subject: Added dbus method to get whether 5Ghz band is supported Change-Id: Ib3b189615648a35aa876eab3e3f61c47ac0c1e68 Signed-off-by: Abhishek Sansanwal --- plugins/wifi.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins') diff --git a/plugins/wifi.c b/plugins/wifi.c index 33425e02..71727e69 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -3566,6 +3566,10 @@ static void interface_added(GSupplicantInterface *interface) { const char *ifname = g_supplicant_interface_get_ifname(interface); const char *driver = g_supplicant_interface_get_driver(interface); +#if defined TIZEN_EXT + bool is_5_0_ghz_supported = g_supplicant_interface_get_is_5_0_ghz_supported(interface); +#endif + struct wifi_data *wifi; wifi = g_supplicant_interface_get_data(interface); @@ -3589,6 +3593,9 @@ static void interface_added(GSupplicantInterface *interface) } connman_device_set_powered(wifi->device, true); +#if defined TIZEN_EXT + connman_techonology_wifi_set_5ghz_supported(wifi_technology, is_5_0_ghz_supported); +#endif } static bool is_idle(struct wifi_data *wifi) -- cgit v1.2.3