From: Milind Murhekar Date: Thu, 1 Feb 2018 10:01:28 +0000 (+0530) Subject: Refactoring for tethering channel value X-Git-Tag: submit/tizen/20180318.231541~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4710015acbc93e88f3d9ad71480c7d806d68bd2a;p=platform%2Fcore%2Fapi%2Ftethering.git Refactoring for tethering channel value Change-Id: Ie8105dfbc66be773ac0ef2d69aca3b3ac924727a Signed-off-by: Milind Murhekar --- 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;