From 4710015acbc93e88f3d9ad71480c7d806d68bd2a Mon Sep 17 00:00:00 2001 From: Milind Murhekar Date: Thu, 1 Feb 2018 15:31:28 +0530 Subject: [PATCH] Refactoring for tethering channel value Change-Id: Ie8105dfbc66be773ac0ef2d69aca3b3ac924727a Signed-off-by: Milind Murhekar --- include/tethering_private.h | 1 + src/tethering.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/tethering_private.h b/include/tethering_private.h index 7576e43..b555868 100644 --- a/include/tethering_private.h +++ b/include/tethering_private.h @@ -247,6 +247,7 @@ typedef enum { */ #define TETHERING_DEFAULT_SSID "Tizen" +#define TETHERING_WIFI_CHANNEL 6 #define TETHERING_WIFI_SECURITY_TYPE_OPEN_STR "open" #define TETHERING_WIFI_SECURITY_TYPE_WPA2_PSK_STR "wpa2-psk" #define TETHERING_WIFI_SECURITY_TYPE_WPS_STR "wps" diff --git a/src/tethering.c b/src/tethering.c index 4ff0e1b..5b6e216 100755 --- a/src/tethering.c +++ b/src/tethering.c @@ -1434,7 +1434,7 @@ API int tethering_create(tethering_h *tethering) th->sec_type = TETHERING_WIFI_SECURITY_TYPE_WPA2_PSK; th->visibility = true; th->mac_filter = false; - th->channel = 6; + th->channel = TETHERING_WIFI_CHANNEL; th->mode_type = TETHERING_WIFI_MODE_TYPE_G; th->wifi_max_connected = TETHERING_WIFI_MAX_STA; -- 2.34.1