WPS NFC: Use pubkey mismatch config error from Enrollee
This was already done for Registrar, but the Enrollee case did not set config error properly if Registrar public key did not match the hash received during NFC connection handover. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
59b45d1afe
commit
ac08752d28
1 changed files with 1 additions and 0 deletions
|
@ -527,6 +527,7 @@ static int wps_process_pubkey(struct wps_data *wps, const u8 *pk,
|
|||
wpa_hexdump(MSG_DEBUG, "WPS: Expected public key hash",
|
||||
wps->peer_pubkey_hash,
|
||||
WPS_OOB_PUBKEY_HASH_LEN);
|
||||
wps->config_error = WPS_CFG_PUBLIC_KEY_HASH_MISMATCH;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue