WPA auth: Disconnect STA if MSK cannot be fetched

Previously, it was possible for some corner cases to leave the WPA
authenticator state machine running if PMK could not be derived. Change
this to forcefully disconnect the STA to get more consistent behavior
and faster notification of the error.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-01-29 22:31:41 +02:00 committed by Jouni Malinen
parent 40aaa64f9f
commit 1180dd66a9

View File

@ -1881,6 +1881,8 @@ SM_STATE(WPA_PTK, INITPMK)
} else { } else {
wpa_printf(MSG_DEBUG, "WPA: Could not get PMK, get_msk: %p", wpa_printf(MSG_DEBUG, "WPA: Could not get PMK, get_msk: %p",
sm->wpa_auth->cb.get_msk); sm->wpa_auth->cb.get_msk);
sm->Disconnect = TRUE;
return;
} }
os_memset(msk, 0, sizeof(msk)); os_memset(msk, 0, sizeof(msk));