From 47ac7819cd611aa17775681f08b071bfec9d57bc Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Mon, 15 Feb 2016 15:28:35 +0900 Subject: [PATCH] Change dbus service name for mobileap-agent and add test case for getting channel, hw_mode Change-Id: I1be7ad95ef6e5b799cf0cd0444b0a15268e5849b Signed-off-by: Seonah Moon --- include/tethering_private.h | 4 ++-- packaging/capi-network-tethering.spec | 2 +- test/tethering_test.c | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/include/tethering_private.h b/include/tethering_private.h index 0190036..3572e13 100644 --- a/include/tethering_private.h +++ b/include/tethering_private.h @@ -191,8 +191,8 @@ typedef enum { E_SIGNAL_MAX } mobile_ap_sig_e; -#define TETHERING_SERVICE_OBJECT_PATH "/Tethering" -#define TETHERING_SERVICE_NAME "org.tizen.tethering" +#define TETHERING_SERVICE_OBJECT_PATH "/MobileapAgent" +#define TETHERING_SERVICE_NAME "org.tizen.MobileapAgent" #define TETHERING_SERVICE_INTERFACE "org.tizen.tethering" #define TETHERING_SIGNAL_MATCH_RULE "type='signal',interface='org.tizen.tethering'" diff --git a/packaging/capi-network-tethering.spec b/packaging/capi-network-tethering.spec index 9c1a172..959bcdb 100644 --- a/packaging/capi-network-tethering.spec +++ b/packaging/capi-network-tethering.spec @@ -1,6 +1,6 @@ Name: capi-network-tethering Summary: Tethering Framework -Version: 1.0.31 +Version: 1.0.32 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/test/tethering_test.c b/test/tethering_test.c index d55ec55..054c177 100755 --- a/test/tethering_test.c +++ b/test/tethering_test.c @@ -488,7 +488,9 @@ static void __print_wifi_tethering_setting(tethering_h th) char *passphrase = NULL; bool visibility = false; bool mac_filter = 0; + int channel = 0; tethering_wifi_security_type_e security_type = TETHERING_WIFI_SECURITY_TYPE_NONE; + tethering_wifi_mode_type_e hw_mode = TETHERING_WIFI_MODE_TYPE_G; int error = TETHERING_ERROR_NONE; @@ -527,6 +529,18 @@ static void __print_wifi_tethering_setting(tethering_h th) g_print("\t** WiFi tethering mac filter : %s\n", mac_filter ? "enable" : "disable"); + error = tethering_wifi_get_mode(th, &hw_mode); + if (error != TETHERING_ERROR_NONE) + __is_err(error); + else + g_print("\t** WiFi tethering mode : %d\n", hw_mode); + + error = tethering_wifi_get_channel(th, &channel); + if (error != TETHERING_ERROR_NONE) + __is_err(error); + else + g_print("\t** WiFi tethering channel : %d\n", channel); + if (ssid) free(ssid); if (passphrase) -- 2.7.4