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

Commit 09a4cc27 authored by Nalla Kartheek's avatar Nalla Kartheek
Browse files

Wifi: Introduce Intent to inform Wifi sub system restart

SoftApManager receives TetherState change notification to restart SoftAp.
Broadcast this information to WifiService to take necessary actions.
Hence this fix introduces an additional intent to perform the same.

Change-Id: Ib4a4b35316b4a5f28964b3b5f3a201042b33f192
CRs-Fixed: 1073082
parent df4e734f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -295,6 +295,7 @@

    <protected-broadcast android:name="android.net.wifi.WIFI_STATE_CHANGED" />
    <protected-broadcast android:name="android.net.wifi.WIFI_AP_STATE_CHANGED" />
    <protected-broadcast android:name="android.net.wifi.WIFI_AP_SUB_SYSTEM_RESTART" />
    <protected-broadcast android:name="android.net.wifi.WIFI_CREDENTIAL_CHANGED" />
    <protected-broadcast android:name="android.net.wifi.WIFI_SCAN_AVAILABLE" />
    <protected-broadcast android:name="android.net.wifi.SCAN_RESULTS" />
+8 −0
Original line number Diff line number Diff line
@@ -233,6 +233,14 @@ public class WifiManager {
    public static final String WIFI_AP_STATE_CHANGED_ACTION =
        "android.net.wifi.WIFI_AP_STATE_CHANGED";

    /**
     * Broadcast intent action indicating that Wi-Fi AP sub system has been restarted.
     *
     * @hide
     */
    public static final String WIFI_AP_SUB_SYSTEM_RESTART =
        "android.net.wifi.WIFI_AP_SUB_SYSTEM_RESTART";

    /**
     * The lookup key for an int that indicates whether Wi-Fi AP is enabled,
     * disabled, enabling, disabling, or failed.  Retrieve it with