]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Process TX status frames as RX frames too
authorJouni Malinen <j@w1.fi>
Sun, 16 Dec 2012 10:35:07 +0000 (12:35 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 16 Dec 2012 10:35:07 +0000 (12:35 +0200)
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>

wlantest/process.c

index dc272ed29b1b5c92f4c26d5099324774852d9fe8..609a23a93ec018b0686874dde2326fee1a50bfb6 100644 (file)
@@ -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);
+       }
 }