mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(wifi): allow some special igtk keyindx to workaround faulty APs
This commit is contained in:
parent
dd5b091a8b
commit
147463a0ac
@ -1 +1 @@
|
||||
Subproject commit 6d324abd923bf4895099680956c817e63005ce4f
|
||||
Subproject commit 9117caad664422522e77a01d65df09ca5b3d24fa
|
@ -1027,12 +1027,12 @@ static int wpa_supplicant_install_igtk(struct wpa_sm *sm,
|
||||
"WPA: IGTK keyid %d pn %02x%02x%02x%02x%02x%02x",
|
||||
keyidx, MAC2STR(igtk->pn));
|
||||
wpa_hexdump_key(MSG_DEBUG, "WPA: IGTK", igtk->igtk, len);
|
||||
|
||||
if (esp_wifi_set_igtk_internal(WIFI_IF_STA, igtk) < 0) {
|
||||
if (keyidx > 4095) {
|
||||
wpa_printf(MSG_WARNING,
|
||||
"WPA: Invalid IGTK KeyID %d", keyidx);
|
||||
return -1;
|
||||
}
|
||||
if (esp_wifi_set_igtk_internal(WIFI_IF_STA, igtk) < 0) {
|
||||
wpa_printf(MSG_WARNING,
|
||||
"WPA: Failed to configure IGTK to the driver");
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user