diff options
author | Vinit Deshapnde <vinitd@google.com> | 2013-11-13 15:48:11 -0800 |
---|---|---|
committer | Vinit Deshapnde <vinitd@google.com> | 2013-11-13 15:48:11 -0800 |
commit | 8fa06ee413fa15318190dffbbe6b4de6b4d73f30 (patch) | |
tree | 777d2745aab1e64656c2be74f71c094a56b86db4 /wifi/java | |
parent | 105b9b05041ea6f1109d961d548f3dde2bd69501 (diff) | |
download | frameworks_base-8fa06ee413fa15318190dffbbe6b4de6b4d73f30.zip frameworks_base-8fa06ee413fa15318190dffbbe6b4de6b4d73f30.tar.gz frameworks_base-8fa06ee413fa15318190dffbbe6b4de6b4d73f30.tar.bz2 |
Increase Reject threshold for disabling networks
This change modifies a framework optimization. The framework optimization
disables a network when an access point repeatedly rejects requests
to associate with it. This change has some problems; one being that
it counts the rejects for all networks, and not for a specific network.
This incorrectly penalizes last networks at times; and since the current
threshold is 4 rejects, the probability of penalizing wrong networks
is high. This change ups that number to 16 to reduce that probability.
Bug: 11654725
Change-Id: I7150a9ccbb54bac44f2c2ba100fb6617ded33616
Diffstat (limited to 'wifi/java')
-rw-r--r-- | wifi/java/android/net/wifi/SupplicantStateTracker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/SupplicantStateTracker.java b/wifi/java/android/net/wifi/SupplicantStateTracker.java index f6a621f..e76eb17 100644 --- a/wifi/java/android/net/wifi/SupplicantStateTracker.java +++ b/wifi/java/android/net/wifi/SupplicantStateTracker.java @@ -55,7 +55,7 @@ class SupplicantStateTracker extends StateMachine { private static final int MAX_RETRIES_ON_AUTHENTICATION_FAILURE = 2; /* Maximum retries on assoc rejection events */ - private static final int MAX_RETRIES_ON_ASSOCIATION_REJECT = 4; + private static final int MAX_RETRIES_ON_ASSOCIATION_REJECT = 16; /* Tracks if networks have been disabled during a connection */ private boolean mNetworksDisabledDuringConnect = false; |