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>
This commit is contained in:
Jouni Malinen 2012-12-16 12:35:07 +02:00
parent 62f6fbb480
commit 44f6d554ee

View 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);
}
}