Skip to content

Commit 8f7100a

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "WifiStateMachine: ignore auth-fail event during WPS connection"
2 parents a4e34ae + 5770b2d commit 8f7100a

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)