diff options
author | Jaehyun Kim <jeik01.kim@samsung.com> | 2021-12-28 22:41:31 +0900 |
---|---|---|
committer | Jaehyun Kim <jeik01.kim@samsung.com> | 2021-12-28 22:41:31 +0900 |
commit | 8bc9bcbb7e2faca54d135deb199b8844a4319c53 (patch) | |
tree | daf6825c5cbe73479b8483cebab506df6d0a5b58 /src | |
parent | a0f49e57059d59d8b3124554a16238c968f158c7 (diff) | |
download | connman-8bc9bcbb7e2faca54d135deb199b8844a4319c53.tar.gz connman-8bc9bcbb7e2faca54d135deb199b8844a4319c53.tar.bz2 connman-8bc9bcbb7e2faca54d135deb199b8844a4319c53.zip |
Change the roaming scan intervalsubmit/tizen/20211230.063452
If no AP is found to roam, change the scan interval
to minimize performance degradation due to frequent scans.
Change-Id: I1d655fa0d2215358531f772b6d697e537ed3a2d5
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/main.conf | 4 | ||||
-rwxr-xr-x | src/network.c | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/main.conf b/src/main.conf index 662af2b2..f761da7c 100755 --- a/src/main.conf +++ b/src/main.conf @@ -187,12 +187,12 @@ DefaultWifiInterface = wlan0 # Allow ConnMan to start scan for wifi roaming when SNR and signal are weakened # Default value is false. -WifiRoamingScan = true +# WifiRoamingScan = true # Allow ConnMan to start wifi roaming when SNR and signal are weakened # and there is another BSS in better condition. # Default value is false. -WifiRoaming = true +# WifiRoaming = true [INS] diff --git a/src/network.c b/src/network.c index b1643e72..ded10402 100755 --- a/src/network.c +++ b/src/network.c @@ -148,6 +148,7 @@ struct connman_network { bool roaming_progress; char *roaming_cur_bssid; char *roaming_dst_bssid; + __time_t roam_scan_time; int snr; #endif } wifi; @@ -2651,6 +2652,17 @@ GHashTable *connman_network_get_assoc_reject_table(struct connman_network *netwo return network->wifi.assoc_reject_table; } +__time_t connman_network_get_roam_scan_time(struct connman_network *network) +{ + return network->wifi.roam_scan_time; +} + +void connman_network_set_roam_scan_time(struct connman_network *network, + __time_t roam_scan_time) +{ + network->wifi.roam_scan_time = roam_scan_time; +} + int connman_network_get_snr(struct connman_network *network) { return network->wifi.snr; |