summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2021-10-05 01:09:08 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2021-10-05 01:41:38 +0900
commit4e445f017dd2c5aaa204002db74584fec457f9d8 (patch)
tree7d249958b745d09cf3ec46a81102e0fb5f027fb0 /src/main.c
parentf2074eea6e8ead5bde4d712f0707cf6a3e025fb8 (diff)
downloadconnman-4e445f017dd2c5aaa204002db74584fec457f9d8.tar.gz
connman-4e445f017dd2c5aaa204002db74584fec457f9d8.tar.bz2
connman-4e445f017dd2c5aaa204002db74584fec457f9d8.zip
Start scan for wifi roaming when SNR and signal are weakened
If SNR is less than 20 or RSSI level is less than 3, scan for BSS transition is started. Change-Id: I69c1e3e9a42ddb5f6087d580ff2c15c7086317d2 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index cc104d50..7b73a0b8 100755
--- a/src/main.c
+++ b/src/main.c
@@ -107,6 +107,7 @@ static struct {
bool file_log;
bool dlog_log;
bool simple_log;
+ bool wifi_roam_scan;
#endif
} connman_settings = {
.bg_scan = true,
@@ -140,6 +141,7 @@ static struct {
.file_log = true,
.dlog_log = true,
.simple_log = true,
+ .wifi_roam_scan = true,
#endif
};
@@ -230,6 +232,7 @@ static struct {
#define CONF_CONNMAN_FILE_LOG "FileLogging"
#define CONF_CONNMAN_DLOG_LOG "DlogLogging"
#define CONF_CONNMAN_SIMPLIFIED_LOG "SimplifiedLog"
+#define CONF_CONNMAN_WIFI_ROAM_SCAN "WifiRoamingScan"
#endif
#if defined TIZEN_EXT
@@ -291,6 +294,7 @@ static const char *supported_options[] = {
CONF_CONNMAN_FILE_LOG,
CONF_CONNMAN_DLOG_LOG,
CONF_CONNMAN_SIMPLIFIED_LOG,
+ CONF_CONNMAN_WIFI_ROAM_SCAN,
#endif
NULL
};
@@ -697,6 +701,11 @@ static void check_Tizen_configuration(GKeyFile *config)
if (!error)
connman_settings.simple_log = boolean;
+ boolean = __connman_config_get_bool(config, "General",
+ CONF_CONNMAN_WIFI_ROAM_SCAN, &error);
+ if (!error)
+ connman_settings.wifi_roam_scan = boolean;
+
g_clear_error(&error);
check_Tizen_INS_configuration(config);
@@ -1183,6 +1192,9 @@ bool connman_setting_get_bool(const char *key)
if (g_str_equal(key, CONF_CONNMAN_SIMPLIFIED_LOG))
return connman_settings.simple_log;
+
+ if (g_str_equal(key, CONF_CONNMAN_WIFI_ROAM_SCAN))
+ return connman_settings.wifi_roam_scan;
#endif
#if defined TIZEN_EXT