aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-12-16 10:35:07 (GMT)
committerJouni Malinen <j@w1.fi>2012-12-16 10:35:07 (GMT)
commit44f6d554eef30acca532ca8f5ddd1c99b2204722 (patch)
treec5eea0ed4bede7421b4de2bec6e5777249a4ccd4 /wlantest
parent62f6fbb480e52680cadfc9bd5c03b031b16d4805 (diff)
downloadhostap-44f6d554eef30acca532ca8f5ddd1c99b2204722.zip
hostap-44f6d554eef30acca532ca8f5ddd1c99b2204722.tar.gz
hostap-44f6d554eef30acca532ca8f5ddd1c99b2204722.tar.bz2
wlantest: Process TX status frames as RX frames too
This is needed to allow capture files from the mac80211 cooked monitor mode interface to be processed properly. Without this, the locally generated frames may not get processed. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/process.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/wlantest/process.c b/wlantest/process.c
index dc272ed..609a23a 100644
--- a/wlantest/process.c
+++ b/wlantest/process.c
@@ -331,8 +331,11 @@ void wlantest_process(struct wlantest *wt, const u8 *data, size_t len)
return;
if (!txflags)
rx_frame(wt, frame, frame_len);
- else
+ else {
tx_status(wt, frame, frame_len, !failed);
+ /* Process as RX frame to support local monitor interface */
+ rx_frame(wt, frame, frame_len);
+ }
}