Platform: MACOS
I'm using the command:
tcpdump -l -I -i en0 -e -s 0 'type mgt and subtype beacon' -w beacon.pcap -c 500 -vvv
..to capture wifi beacons from my MAC. I'm looking for a way to parse detailed info from the pcap file. The details that I need:
Tag: QBSS Load Element 802.11e CCA Version
Tag Number QBSS Load Element (11)
Tag length: 5
QBSS Version: 2
Station Count: 0 <—— Need this
Channel Utilization: 39 (15%). <—— Need this
Available Admission Capacity: 0 (0 us/s)
BUT, I need to do this for a specific BSSID.
To summarize my goal:
Need to capture beacons from my MAC. Read the capture file, filtering on the BSSID. Then somehow dump out the QBSS info.
Note: I will be using the solution in a shell script that will be exported to other MACs. Tshark is not an option.
What I have tried:
Attempted to dump the output of the capture to an ASCII file:
tcpdump -l -I -i en0 -e -s 0 'type mgt and subtype beacon' -w beacon.txt -c 500 -vvv -XX
tcpdump -r beacon.txt
..but this does not dump any of the details that I need.