diff options
author | Jaehyun Kim <jeik01.kim@samsung.com> | 2021-12-19 11:32:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review> | 2021-12-19 11:32:46 +0000 |
commit | d4fbe50ed65c256d0592cd61496eda3e0bac5389 (patch) | |
tree | 355651287cb32a1421e020565d3ed452cf3e3683 /src/main.c | |
parent | cbc442527ed68fe86c882fd66aa1815124ec27dc (diff) | |
parent | 4e445f017dd2c5aaa204002db74584fec457f9d8 (diff) | |
download | connman-d4fbe50ed65c256d0592cd61496eda3e0bac5389.tar.gz connman-d4fbe50ed65c256d0592cd61496eda3e0bac5389.tar.bz2 connman-d4fbe50ed65c256d0592cd61496eda3e0bac5389.zip |
Merge "Start scan for wifi roaming when SNR and signal are weakened" into tizen
Diffstat (limited to 'src/main.c')
-rwxr-xr-x | src/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -108,6 +108,7 @@ static struct { bool file_log; bool dlog_log; bool simple_log; + bool wifi_roam_scan; #endif } connman_settings = { .bg_scan = true, @@ -141,6 +142,7 @@ static struct { .file_log = true, .dlog_log = true, .simple_log = true, + .wifi_roam_scan = true, #endif }; @@ -231,6 +233,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 @@ -292,6 +295,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 }; @@ -698,6 +702,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); @@ -1184,6 +1193,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 |