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

Commit 5770b2dc authored by Arik Nemtsov's avatar Arik Nemtsov Committed by Vishal Mahaveer
Browse files

WifiStateMachine: ignore auth-fail event during WPS connection



Disregard auth failure events during WPS connection. The EAP sequence is
retried several times, and there might be failures (especially for wps pin).
We will get a WPS_XXX event at the end of the sequence anyway.

Without this change, the SupplicantStateTracker class will disable
the WPS network we are connecting to after 2 failed authentication events.
Then, even if WPS succeeds, we will never connect to the selected network.

Change-Id: I57c8e508bfd738405b7f2c2c2325df7838e1b4af
Signed-off-by: default avatarArik Nemtsov <arik@wizery.com>
Signed-off-by: default avatarVishal Mahaveer <vishalm@ti.com>
parent 9f7fa4c4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3535,6 +3535,13 @@ public class WifiStateMachine extends StateMachine {
                    if (DBG) log("Network connection lost");
                    handleNetworkDisconnect();
                    break;
                case WifiMonitor.AUTHENTICATION_FAILURE_EVENT:
                    // Disregard auth failure events during WPS connection. The
                    // EAP sequence is retried several times, and there might be
                    // failures (especially for wps pin). We will get a WPS_XXX
                    // event at the end of the sequence anyway.
                    if (DBG) log("Ignore auth failure during WPS connection");
                    break;
                case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT:
                    //Throw away supplicant state changes when WPS is running.
                    //We will start getting supplicant state changes once we get