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

Commit 5914caff authored by Pierre Vandwalle's avatar Pierre Vandwalle
Browse files

export API to disable autojoin scan initial implementation

Change-Id: I28e268dd8b859a3a22c3d6f699216bbd7124af26
parent c9848266
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -153,6 +153,10 @@ interface IWifiManager

    void setAllowScansWithTraffic(int enabled);

    boolean getAllowScansWhileAssociated();

    void setAllowScansWhileAssociated(boolean enabled);

    WifiConnectionStatistics getConnectionStatistics();

    void disableEphemeralNetwork(String SSID);
+21 −0
Original line number Diff line number Diff line
@@ -2561,6 +2561,27 @@ public class WifiManager {
        }
    }

    /**
     * Set setting for allowing Scans when infrastructure is associated
     * @hide
     */
    public void setAllowScansWhileAssociated(boolean enabled) {
        try {
            mService.setAllowScansWhileAssociated(enabled);
        } catch (RemoteException e) {

        }
    }

    /**
     * Get setting for allowing Scans when infrastructure is associated
     * @hide
     */
    public boolean getAllowScansWhileAssociated() {
        try {
            return mService.getAllowScansWhileAssociated();
        } catch (RemoteException e) {
        }
        return false;
    }
}