Add script to convert wpa_supplicant debug output to pcap
authorJohannes Berg <johannes.berg@intel.com>
Thu, 5 Apr 2012 16:47:45 +0000 (19:47 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 5 Apr 2012 16:49:17 +0000 (19:49 +0300)
commitf05b6b18bb54c6c3e5b5b2c224ec0933c6005262
tree5985fd60e94c33bdb88200b4d0ea42076f34210f
parent71dd3b78f90a5ca4d5f56966df024c676af177be
Add script to convert wpa_supplicant debug output to pcap

For debugging I needed to look at the frames in a wpa_supplicant debug
log. Looking at the hexdump is a bit tedious, so I wrote a quick script
to convert the nl80211 debugging output to a PCAP file that can be
opened in wireshark.

I've polished the initial raw script a bit to add error messages and to
also record the timestamps to the pcap file.

Hopefully it's useful to somebody else as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
wpa_supplicant/utils/log2pcap.py [new file with mode: 0755]