Extend hostapd rsnxe_override_eapol to allow IE removal
Previous implementation was determining whether the override value was set based on its length being larger than zero. Replace this with an explicit indication of whether the parameter is set to allow zero length replacement, i.e., remove of RSNXE from EAPOL-Key msg 3/4. In addition, move IE replacement into a more generic helper function to allow this to be used with other IEs as well. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
20cace9014
commit
9128b67269
3 changed files with 43 additions and 27 deletions
|
@ -225,6 +225,7 @@ struct wpa_auth_config {
|
|||
size_t rsnxe_override_eapol_len;
|
||||
u8 gtk_rsc_override[WPA_KEY_RSC_LEN];
|
||||
u8 igtk_rsc_override[WPA_KEY_RSC_LEN];
|
||||
unsigned int rsnxe_override_eapol_set:1;
|
||||
unsigned int gtk_rsc_override_set:1;
|
||||
unsigned int igtk_rsc_override_set:1;
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue