mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
fix(wifi): allow some special igtk keyindx to workaround faulty APs
This commit is contained in:
@@ -1004,12 +1004,12 @@ static int wpa_supplicant_install_igtk(struct wpa_sm *sm,
|
|||||||
"WPA: IGTK keyid %d pn %02x%02x%02x%02x%02x%02x",
|
"WPA: IGTK keyid %d pn %02x%02x%02x%02x%02x%02x",
|
||||||
keyidx, MAC2STR(igtk->pn));
|
keyidx, MAC2STR(igtk->pn));
|
||||||
wpa_hexdump_key(MSG_DEBUG, "WPA: IGTK", igtk->igtk, len);
|
wpa_hexdump_key(MSG_DEBUG, "WPA: IGTK", igtk->igtk, len);
|
||||||
|
|
||||||
|
if (esp_wifi_set_igtk_internal(WIFI_IF_STA, igtk) < 0) {
|
||||||
if (keyidx > 4095) {
|
if (keyidx > 4095) {
|
||||||
wpa_printf(MSG_WARNING,
|
wpa_printf(MSG_WARNING,
|
||||||
"WPA: Invalid IGTK KeyID %d", keyidx);
|
"WPA: Invalid IGTK KeyID %d", keyidx);
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
if (esp_wifi_set_igtk_internal(WIFI_IF_STA, igtk) < 0) {
|
|
||||||
wpa_printf(MSG_WARNING,
|
wpa_printf(MSG_WARNING,
|
||||||
"WPA: Failed to configure IGTK to the driver");
|
"WPA: Failed to configure IGTK to the driver");
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user