From 73f65cc6c47adf2ebeb9768a1fac974398332350 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 6 May 2021 23:28:27 +0300 Subject: [PATCH] wlantest: Support HT Control field in QoS Data frames Extend Data frame processing (and decryption) to handle +HTC frames by skipping the HT Control field at the end of the frame header. While this is not an exact match of the rules in IEEE Std 802.11-2020 for when the HT Control field is present in frames (e.g., no check of the TXVECTOR value), this is good enough to cover the most likely used cases. Signed-off-by: Jouni Malinen --- wlantest/rx_data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wlantest/rx_data.c b/wlantest/rx_data.c index 8cb2d3718..f8b5f7e8a 100644 --- a/wlantest/rx_data.c +++ b/wlantest/rx_data.c @@ -847,6 +847,8 @@ void rx_data(struct wlantest *wt, const u8 *data, size_t len) qos = data + hdrlen; hdrlen += 2; } + if ((fc & WLAN_FC_HTC) && (stype & 0x08)) + hdrlen += 4; /* HT Control field */ if (len < hdrlen) return; wt->rx_data++;