Skip to content

Commit 5770b2d

Browse files
ariknemvishalmti
authored andcommitted
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: Arik Nemtsov <arik@wizery.com> Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
1 parent 9f7fa4c commit 5770b2d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

wifi/java/android/net/wifi/WifiStateMachine.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,6 +3535,13 @@ public boolean processMessage(Message message) {
35353535
if (DBG) log("Network connection lost");
35363536
handleNetworkDisconnect();
35373537
break;
3538+
case WifiMonitor.AUTHENTICATION_FAILURE_EVENT:
3539+
// Disregard auth failure events during WPS connection. The
3540+
// EAP sequence is retried several times, and there might be
3541+
// failures (especially for wps pin). We will get a WPS_XXX
3542+
// event at the end of the sequence anyway.
3543+
if (DBG) log("Ignore auth failure during WPS connection");
3544+
break;
35383545
case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT:
35393546
//Throw away supplicant state changes when WPS is running.
35403547
//We will start getting supplicant state changes once we get

0 commit comments

Comments
 (0)