Refactoring for tethering channel value 50/168950/2
authorMilind Murhekar <m.murhekar@samsung.com>
Thu, 1 Feb 2018 10:01:28 +0000 (15:31 +0530)
committerMilind Murhekar <m.murhekar@samsung.com>
Mon, 19 Feb 2018 04:50:28 +0000 (10:20 +0530)
Change-Id: Ie8105dfbc66be773ac0ef2d69aca3b3ac924727a
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
include/tethering_private.h
src/tethering.c

index 7576e43..b555868 100644 (file)
@@ -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"
index 4ff0e1b..5b6e216 100755 (executable)
@@ -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;