Compare commits

..

No commits in common. "8c9487984ad3f3056c4e8823ee1d873c01988a09" and "9bf8594c48c43f0405034f1217ca404fbf7318de" have entirely different histories.

1 changed files with 2 additions and 8 deletions

View File

@ -196,9 +196,7 @@ fi
# Now parse the pcap file to extract fields # Now parse the pcap file to extract fields
# Only extract 802.11 header fields - data payloads are encrypted # Only extract 802.11 header fields - data payloads are encrypted
# Include PHY rate and MCS for histograms # Include PHY rate and MCS for histograms
# Extract to temp file first to avoid pipe issues, then filter CAPTURE_OUTPUT=$(tshark -q -r "$TEMP_PCAP" -n -T fields \
TEMP_TSHARK_OUTPUT=$(mktemp /tmp/tshark_output_XXXXXX.txt)
tshark -q -r "$TEMP_PCAP" -n -T fields \
-e frame.number \ -e frame.number \
-e frame.time \ -e frame.time \
-e wlan.ra \ -e wlan.ra \
@ -214,11 +212,7 @@ tshark -q -r "$TEMP_PCAP" -n -T fields \
-e radiotap.mcs.index \ -e radiotap.mcs.index \
-e wlan_radio.data_rate \ -e wlan_radio.data_rate \
-e wlan_radio.mcs.index \ -e wlan_radio.mcs.index \
2>/dev/null > "$TEMP_TSHARK_OUTPUT" || true 2>&1 | grep -v "^tshark:" | grep -v "^Running as" | grep -v "^Capturing" || true)
# Filter out non-packet lines (keep only lines starting with frame numbers)
CAPTURE_OUTPUT=$(grep -E '^[0-9]+\t' "$TEMP_TSHARK_OUTPUT" || true)
rm -f "$TEMP_TSHARK_OUTPUT"
# Clean up temp file (unless KEEP_PCAP is set) # Clean up temp file (unless KEEP_PCAP is set)
if [ -z "$KEEP_PCAP" ]; then if [ -z "$KEEP_PCAP" ]; then