diff --git a/wlantest/rx_data.c b/wlantest/rx_data.c index fa8df77be..e8160c3f6 100644 --- a/wlantest/rx_data.c +++ b/wlantest/rx_data.c @@ -260,8 +260,9 @@ static void rx_data_bss_prot_group(struct wlantest *wt, check_plaintext_prot(wt, hdr, data, len); keyid = data[3] >> 6; - if (bss->gtk_len[keyid] == 0 && bss->group_cipher != WPA_CIPHER_WEP40) - { + if (bss->gtk_len[keyid] == 0 && + (bss->group_cipher != WPA_CIPHER_WEP40 || + dl_list_empty(&wt->wep))) { add_note(wt, MSG_MSGDUMP, "No GTK known to decrypt the frame " "(A2=" MACSTR " KeyID=%d)", MAC2STR(hdr->addr2), keyid);