mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
sae: add debugging for incorrect password identifier
If the AP rejects the auth because of an unknown identifier catch this and log the error.
This commit is contained in:
parent
3524b5ef43
commit
ded1a35c41
16
src/sae.c
16
src/sae.c
@ -1104,11 +1104,19 @@ static int sae_verify_committed(struct sae_sm *sm, uint16_t transaction,
|
|||||||
* If the Status is some other nonzero value, the frame shall be
|
* If the Status is some other nonzero value, the frame shall be
|
||||||
* silently discarded and the t0 (retransmission) timer shall be set.
|
* silently discarded and the t0 (retransmission) timer shall be set.
|
||||||
*/
|
*/
|
||||||
if (status != 0 && status != MMPDU_STATUS_CODE_SAE_HASH_TO_ELEMENT)
|
switch (status) {
|
||||||
|
case 0:
|
||||||
|
case MMPDU_STATUS_CODE_SAE_HASH_TO_ELEMENT:
|
||||||
|
if (status != sae_status_code(sm))
|
||||||
|
return -EBADMSG;
|
||||||
|
break;
|
||||||
|
case MMPDU_STATUS_CODE_UNKNOWN_PASSWORD_IDENTIFIER:
|
||||||
|
sae_debug("Incorrect password identifier, check "
|
||||||
|
"[Security].PasswordIdentifier");
|
||||||
|
/* fall through */
|
||||||
|
default:
|
||||||
return -ENOMSG;
|
return -ENOMSG;
|
||||||
|
}
|
||||||
if (status != sae_status_code(sm))
|
|
||||||
return -EBADMSG;
|
|
||||||
|
|
||||||
if (len < 2)
|
if (len < 2)
|
||||||
return -EBADMSG;
|
return -EBADMSG;
|
||||||
|
Loading…
Reference in New Issue
Block a user