| Message ID | 20261028210518.666179-1-koralilgun@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series | FT: Clear RSNXE Used when the response omits the RSNXE | expand |
Please disregard this version. The commit message is wrong: per 51d1924bd, RSNXE Used reflects the use of the RSNXE in other frames, and the AP behavior matches that design. The STA that failed reads the bit against the Reassociation Response instead. v2 makes the STA case an opt-in interoperability workaround, similar to sae_accept_h2e_without_use, and adds a fix for the rsn_override_omit_rsnxe case, where wpa_supplicant rejects the current response. It goes out as a new thread: "[PATCH v2 0/3] FT: RSNXE Used without the RSNXE".
diff --git a/src/ap/wpa_auth_ft.c b/src/ap/wpa_auth_ft.c index e12f2ad8e..bc1f3c5f8 100644 --- a/src/ap/wpa_auth_ft.c +++ b/src/ap/wpa_auth_ft.c @@ -2714,7 +2714,12 @@ u8 * wpa_sm_write_assoc_resp_ies(struct wpa_state_machine *sm, u8 *pos, anonce = NULL; snonce = NULL; } - rsnxe_used = (auth_alg == WLAN_AUTH_FT) && + /* + * A response without the RSNXE must not announce one: some STAs + * discard a response whose RSNXE Used bit and RSNXE do not match, + * as hostapd discards such a request. + */ + rsnxe_used = (auth_alg == WLAN_AUTH_FT) && !omit_rsnxe && (conf->sae_pwe == SAE_PWE_HASH_TO_ELEMENT || conf->sae_pwe == SAE_PWE_BOTH); #ifdef CONFIG_TESTING_OPTIONS