esp_wifi:Mandate stations to have minimum security wpa3

This commit is contained in:
Shreyas Sheth
2022-11-30 13:01:40 +08:00
committed by Jiang Jiang Jian
parent 593335578f
commit 377eeedfef
9 changed files with 35 additions and 2 deletions

View File

@@ -93,6 +93,15 @@ int hostapd_send_eapol(const u8 *source, const u8 *sta_addr,
}
void wpa_supplicant_transition_disable(void *sm, u8 bitmap)
{
wpa_printf(MSG_INFO, "TRANSITION_DISABLE %02x", bitmap);
if (bitmap & TRANSITION_DISABLE_WPA3_PERSONAL) {
esp_wifi_sta_disable_wpa2_authmode_internal();
}
}
u8 *wpa_sm_alloc_eapol(struct wpa_sm *sm, u8 type,
const void *data, u16 data_len,
size_t *msg_len, void **data_pos)