wlantest: Process TX status frames as RX frames too
[mech_eap.git] / wlantest / process.c
index a4dd87d..609a23a 100644 (file)
@@ -2,14 +2,8 @@
  * Received frame processing
  * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Alternatively, this software may be distributed under the terms of BSD
- * license.
- *
- * See README and COPYING for more details.
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
  */
 
 #include "utils/includes.h"
@@ -337,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);
+       }
 }