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

Commit b39368cd authored by Nalla Kartheek's avatar Nalla Kartheek Committed by Gerrit - the friendly Code Review server
Browse files

Revert "wlan: Provide runtime option to enable or disable rssi threshold (base)"

This reverts commit b95c030a.

RSSI threshold parameters are now user configurable.Below are the
parameters.
THRESHOLD_UNBLACKLIST_HARD_5G
THRESHOLD_UNBLACKLIST_SOFT_5G
THRESHOLD_UNBLACKLIST_HARD_24G
THRESHOLD_UNBLACKLIST_SOFT_24G
THRESHOLD_INITIAL_AUTO_JOIN_ATTEMPT_RSSI_MIN_5G
THRESHOLD_INITIAL_AUTO_JOIN_ATTEMPT_RSSI_MIN_24G

Hence reverting the gerrit

Change-Id: I0d589cd494a488a4618434314e76fefde1275abd
CRs-Fixed: 757958
parent c73102b8
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -5930,13 +5930,6 @@ public final class Settings {
       public static final String WIFI_SCAN_ALWAYS_AVAILABLE =
                "wifi_scan_always_enabled";

       /**
        * Setting to allow enable or disable rssi threshold.
        * @hide
        */
       public static final String WIFI_RSSI_THRESHOLD =
                "wifi_rssi_threshold";

       /**
        * Used to save the Wifi_ON state prior to tethering.
        * This state will be checked to restore Wifi after
+0 −2
Original line number Diff line number Diff line
@@ -141,8 +141,6 @@ interface IWifiManager

    void enableVerboseLogging(int verbose);

    void enableRssiThreshold(int enabled);

    int getVerboseLoggingLevel();

    int getAggressiveHandover();
+0 −13
Original line number Diff line number Diff line
@@ -2479,19 +2479,6 @@ public class WifiManager {
        }
    }

    /**
     * Set wifi rssi threshold. Called from advance wifi settings.
     * @hide
     */
    public void enableRssiThreshold (int enabled) {
        try {
            mService.enableRssiThreshold(enabled);
        } catch (Exception e) {
            //ignore any failure here
            Log.e(TAG, "enableRssiThreshold " + e.toString());
        }
    }

    /**
     * Get the WiFi verbose logging level.This is used by settings
     * to decide what to show within the picker.