summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2020-12-13 18:48:48 -0800
committeralk3pInjection <webmaster@raspii.tech>2021-09-27 21:17:05 +0800
commit15ab157513b36ac42d8caa6559bd207e35a9d379 (patch)
treea07c68a232b2919f73334365d757a3fe39373ef0
parent1726fb25c229c310fa2d20b3cfa06b4a4e2e8e16 (diff)
[ProtonAOSP] wifi: Increase 5GHz network signal tolerance
On devices with cellular data available, I've been experiencing Wi-Fi dropouts on 5 GHz networks where it disconnects and falls back to cellular data around a RSSI of -77 dBm. While the Wi-Fi quality may not be ideal at this signal level, it is still better to stay on it than switch to cellular data because switching networks can be very disruptive to the user. To make matters worse, the signal tends to oscillate around -77 dBm in my case, which causes it to oscillate between Wi-Fi and cellular data every few seconds. This causes far more disruptions than staying on weak Wi-Fi would. These signal levels were measured empirically on a Pixel 5, but they should apply to most devices. 2.4 GHz values were found to be more or less accurate, but 5 GHz networks continued to work past the AOSP thresholds. The iPhone 6s was also content with these signal levels and still displayed 2 of 3 signal levels at -77 dBm. Change-Id: I59a87c46aef696a2ecda74037496ff8c587e68fa
-rw-r--r--overlay/common/frameworks/opt/net/wifi/service/res/values/config.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/overlay/common/frameworks/opt/net/wifi/service/res/values/config.xml b/overlay/common/frameworks/opt/net/wifi/service/res/values/config.xml
new file mode 100644
index 00000000..7236449b
--- /dev/null
+++ b/overlay/common/frameworks/opt/net/wifi/service/res/values/config.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2020 The Proton AOSP Project
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources>
+ <!-- Integer parameters of the wifi to cellular handover feature
+ wifi should not stick to bad networks -->
+ <!-- Integer threshold for low network score, should be somewhat less than the entry threshhold -->
+ <integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_5GHz">-90</integer>
+ <!-- Integer threshold, do not connect to APs with RSSI lower than the entry threshold -->
+ <integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz">-85</integer>
+</resources>