summaryrefslogtreecommitdiff
path: root/src
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
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')
-rwxr-xr-xsrc/main.c12
-rwxr-xr-xsrc/main.conf4
2 files changed, 16 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
diff --git a/src/main.conf b/src/main.conf
index 555225f0..6763d71b 100755
--- a/src/main.conf
+++ b/src/main.conf
@@ -185,6 +185,10 @@ SimplifiedLog = true
# Default value is wlan0.
DefaultWifiInterface = wlan0
+# Allow ConnMan to start scan for wifi roaming when SNR and signal are weakened
+# Default value is true.
+WifiRoamingScan = true
+
[INS]
# INS(Intelligent Network Selection) configuration: BSSID Selection.
INSPreferredFreqBSSID = 5GHz