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

Commit ff3fbdea authored by Daisuke Niwa's avatar Daisuke Niwa Committed by Ecco Park
Browse files

WifiConfiguration: New disable network status for no subscription



Add a new network disable reason to disable EAP network if
AT_NOTIFICATION notification code (1031) is returned. It indicates
user has not subscribed to the requested service.

Bug: 122921493
Test: Manually verified that device will not try to connect to the
EAP network if EAP authentication failed with 1031 code before.
Signed-off-by: default avatarDaichi Ueura <daichi.ueura@sony.com>
Change-Id: I0c531064cb5098f1e036a7fd8975a94cb51855b9
parent f9a25e52
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -1098,10 +1098,14 @@ public class WifiConfiguration implements Parcelable {
         * This network is disabled due to wrong password
         * This network is disabled due to wrong password
         */
         */
        public static final int DISABLED_BY_WRONG_PASSWORD = 13;
        public static final int DISABLED_BY_WRONG_PASSWORD = 13;
        /**
         * This network is disabled because service is not subscribed
         */
        public static final int DISABLED_AUTHENTICATION_NO_SUBSCRIPTION = 14;
        /**
        /**
         * This Maximum disable reason value
         * This Maximum disable reason value
         */
         */
        public static final int NETWORK_SELECTION_DISABLED_MAX = 14;
        public static final int NETWORK_SELECTION_DISABLED_MAX = 15;


        /**
        /**
         * Quality network selection disable reason String (for debug purpose)
         * Quality network selection disable reason String (for debug purpose)
@@ -1120,7 +1124,8 @@ public class WifiConfiguration implements Parcelable {
                "NETWORK_SELECTION_DISABLED_NO_INTERNET_PERMANENT",
                "NETWORK_SELECTION_DISABLED_NO_INTERNET_PERMANENT",
                "NETWORK_SELECTION_DISABLED_BY_WIFI_MANAGER",
                "NETWORK_SELECTION_DISABLED_BY_WIFI_MANAGER",
                "NETWORK_SELECTION_DISABLED_BY_USER_SWITCH",
                "NETWORK_SELECTION_DISABLED_BY_USER_SWITCH",
                "NETWORK_SELECTION_DISABLED_BY_WRONG_PASSWORD"
                "NETWORK_SELECTION_DISABLED_BY_WRONG_PASSWORD",
                "NETWORK_SELECTION_DISABLED_AUTHENTICATION_NO_SUBSCRIPTION"
        };
        };


        /**
        /**