From: Jouni Malinen Date: Wed, 5 Jan 2011 08:41:51 +0000 (+0200) Subject: wlantest: Skip frames inserted by wlantest when reading pcap file X-Git-Tag: hostap-1-bp~657 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62a0255c1fc74e7ec6559bb2bd5c85b7814e769a;p=thirdparty%2Fhostap.git wlantest: Skip frames inserted by wlantest when reading pcap file This makes debug output clearer when re-reading a file that has previously been processed and decrypted by wlantest. --- diff --git a/wlantest/process.c b/wlantest/process.c index f740a6445..3b80974d3 100644 --- a/wlantest/process.c +++ b/wlantest/process.c @@ -228,6 +228,10 @@ void wlantest_process(struct wlantest *wt, const u8 *data, size_t len) } } + if (iter.max_length == 8) { + wpa_printf(MSG_DEBUG, "Skip frame inserted by wlantest"); + return; + } frame = data + iter.max_length; frame_len = len - iter.max_length;