]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Indicate ToDS/FromDS values for BSS DATA entries
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 31 Aug 2023 09:33:45 +0000 (12:33 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 31 Aug 2023 09:33:45 +0000 (12:33 +0300)
This makes it a bit more convenient to debug decryption issues.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wlantest/rx_data.c

index a3dca3e1631a707f8fad943acdf94e028d91be83..f1d46495e9d6c8e0f67918e443c1de12c7d25b23 100644 (file)
@@ -791,18 +791,22 @@ static void rx_data_bss(struct wlantest *wt, const struct ieee80211_hdr *hdr,
        if (qos) {
                u8 ack = (qos[0] & 0x60) >> 5;
                wpa_printf(MSG_MSGDUMP, "BSS DATA: " MACSTR " -> " MACSTR
-                          " len=%u%s tid=%u%s%s",
+                          " len=%u%s tid=%u%s%s%s%s",
                           MAC2STR(src), MAC2STR(dst), (unsigned int) len,
                           prot ? " Prot" : "", qos[0] & 0x0f,
+                          (fc & WLAN_FC_TODS) ? " ToDS" : "",
+                          (fc & WLAN_FC_FROMDS) ? " FromDS" : "",
                           (qos[0] & 0x10) ? " EOSP" : "",
                           ack == 0 ? "" :
                           (ack == 1 ? " NoAck" :
                            (ack == 2 ? " NoExpAck" : " BA")));
        } else {
                wpa_printf(MSG_MSGDUMP, "BSS DATA: " MACSTR " -> " MACSTR
-                          " len=%u%s",
+                          " len=%u%s%s%s",
                           MAC2STR(src), MAC2STR(dst), (unsigned int) len,
-                          prot ? " Prot" : "");
+                          prot ? " Prot" : "",
+                          (fc & WLAN_FC_TODS) ? " ToDS" : "",
+                          (fc & WLAN_FC_FROMDS) ? " FromDS" : "");
        }
 
        if (prot)