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
This commit is contained in:
Vinit Deshapnde
2013-11-13 15:48:11 -08:00
parent 105b9b0504
commit 8fa06ee413

View File

@@ -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;