Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d25253ed authored by David Su's avatar David Su
Browse files

Link Probing: Add feature flag

Link probing is disabled by default, enable it using
'adb shell settings put global wifi_link_probing_enabled 1'

Bug: 112029045
Test: atest SettingsBackupTest
Test: Manually check logs that link probing is not occurring when
disabled, and link probing occurs when enabled.

Change-Id: I43ceef59f5e3c76a229cb714e85d01ad16fe300e
parent 7ee32919
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -10515,6 +10515,18 @@ public final class Settings {
        private static final Validator WIFI_PNO_RECENCY_SORTING_ENABLED_VALIDATOR =
                BOOLEAN_VALIDATOR;
        /**
         * Setting to enable the Wi-Fi link probing.
         * Disabled by default, and setting it to 1 will enable it.
         * The value is boolean (0 or 1).
         * @hide
         */
        public static final String WIFI_LINK_PROBING_ENABLED =
                "wifi_link_probing_enabled";
        private static final Validator WIFI_LINK_PROBING_ENABLED_VALIDATOR =
                BOOLEAN_VALIDATOR;
       /**
        * The maximum number of times we will retry a connection to an access
        * point for which we have failed in acquiring an IP address from DHCP.
@@ -13221,6 +13233,7 @@ public final class Settings {
                    WIFI_PNO_FREQUENCY_CULLING_ENABLED_VALIDATOR);
            VALIDATORS.put(WIFI_PNO_RECENCY_SORTING_ENABLED,
                    WIFI_PNO_RECENCY_SORTING_ENABLED_VALIDATOR);
            VALIDATORS.put(WIFI_LINK_PROBING_ENABLED, WIFI_LINK_PROBING_ENABLED_VALIDATOR);
        }
        /**
+1 −0
Original line number Diff line number Diff line
@@ -521,6 +521,7 @@ public class SettingsBackupTest {
                    Settings.Global.WIFI_LINK_SPEED_METRICS_ENABLED,
                    Settings.Global.WIFI_PNO_FREQUENCY_CULLING_ENABLED,
                    Settings.Global.WIFI_PNO_RECENCY_SORTING_ENABLED,
                    Settings.Global.WIFI_LINK_PROBING_ENABLED,
                    Settings.Global.WIFI_MAX_DHCP_RETRY_COUNT,
                    Settings.Global.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS,
                    Settings.Global.WIFI_NETWORK_SHOW_RSSI,