Practically ignoring the check of the authentication transaction
sequence number for SAE here is overly permissive. While the unknown
values will result in same behavior at a later point in the process,
this initial check could as well handle those cases without needing any
additional processing.
Signed-off-by: Jouni Malinen <jouni.malinen@oss.qualcomm.com>
goto fail;
}
- if (!(auth_transaction == 1 || auth_alg == WLAN_AUTH_SAE ||
+ if (!(auth_transaction == 1 ||
+#ifdef CONFIG_SAE
+ (auth_alg == WLAN_AUTH_SAE &&
+ auth_transaction == WLAN_AUTH_TR_SEQ_SAE_CONFIRM) ||
+#endif /* CONFIG_SAE */
#ifdef CONFIG_PASN
(auth_alg == WLAN_AUTH_PASN &&
auth_transaction == WLAN_AUTH_TR_SEQ_PASN_AUTH3) ||