Merge branch 'bugfix/fix_supplicant_log_v4.2' into 'release/v4.2'

wpa_supplicant: Fix compilation when debug prints are enabled

See merge request espressif/esp-idf!14227
This commit is contained in:
Zim Kalinowski 2021-07-27 12:04:50 +00:00
commit 87e9908506

View File

@ -881,7 +881,7 @@ static bool wpa_supplicant_gtk_in_use(struct wpa_sm *sm, struct wpa_gtk_data *gd
if (wpa_sm_get_key(&ifx, &alg, bssid, &keyidx, gtk_get, gd->gtk_len, gd->keyidx - 2) == 0) {
if (ifx == 0 && alg == gd->alg && memcmp(bssid, sm->bssid, ETH_ALEN) == 0 &&
memcmp(_gtk, gtk_get, gd->gtk_len) == 0) {
wpa_printf(MSG_DEBUG, "GTK %d is already in use in entry %d, it may be an attack, ignore it.", gd->keyidx, hw_keyidx);
wpa_printf(MSG_DEBUG, "GTK %d is already in use in entry, it may be an attack, ignore it.", gd->keyidx);
return true;
}
}