> ## Documentation Index
> Fetch the complete documentation index at: https://docs.intuitibits.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Analyze captures in Wireshark

> Open Airtool 2 capture files in Wireshark, understand their format and metadata, and find frames by channel, source, and type.

*Airtool 2* saves the frames it captures for you to analyze in a packet analyzer. This page covers what's in a capture file and how to get started with it in [Wireshark](https://www.wireshark.org). For in-depth analysis, see the [Wireshark User's Guide](https://www.wireshark.org/docs/wsug_html_chunked/) and the [Wireshark wiki on 802.11 captures](https://wiki.wireshark.org/CaptureSetup/WLAN).

## The capture file format

*Airtool 2* saves captures in the [PCAP Next Generation (pcapng)](https://github.com/pcapng/pcapng) format, which Wireshark, tshark, and most current packet analyzers open. A pcapng file can hold, besides the frames:

* **A capture comment**, with the capture source, interfaces, channels, and options. See [Capture metadata](https://docs.intuitibits.com/airtool2/about-packet-captures.md#capture-metadata).
* **The interface each frame was captured on**, so you can separate the frames from each sensor or radio in a capture with more than one.
* **The original length of each frame**, even when it was [sliced](https://docs.intuitibits.com/airtool2/use-automatic-frame-slicing.md) or truncated.

Each frame has a timestamp with microsecond precision, taken from the clock of the device that captured it: your Mac for the built-in adapter, or the sensor or capture device.

### Link-layer types

| Capture | Link-layer type | Wireshark shows |
| - | - | - |
| Wi-Fi, from any source | 802.11 plus radiotap header | *802.11 radio information*, *Radiotap Header*, and the 802.11 frame |
| iOS packet trace | Ethernet | Ethernet and IP traffic, with no radio information |
| Zigbee | IEEE 802.15.4 | IEEE 802.15.4 and Zigbee |
| Bluetooth LE | Bluetooth LE link layer with pseudo-header | Bluetooth Low Energy |

### Radio information

Each Wi-Fi frame starts with a [radiotap](https://www.radiotap.org) header that records how the frame was received, such as the channel frequency, signal strength, noise, data rate or MCS index, and channel width. Wireshark summarizes these fields as *802.11 radio information*.

The fields present depend on the capture source, its Wi-Fi adapter, and its driver. For example, one adapter may report noise and another may not, and the information for the newest Wi-Fi generations is reported only by adapters and drivers that support it. A missing field means the capture source didn't provide it, not that *Airtool 2* removed it.

***

## Open a capture

* **Automatically:** By default, *Airtool 2* opens each capture in the default application for capture files when it's saved. To open captures in Wireshark specifically, choose it in *Settings* > *General* > **Automatically open file in**.
* **From the notification:** Click the *Capture completed* notification to show the file in Finder, then double-click it.
* **Live:** Watch the frames in Wireshark as they're captured. See [Do live captures with Wireshark](https://docs.intuitibits.com/airtool2/do-live-captures-with-wireshark.md).

To see the capture comment, choose *Statistics* > *Capture File Properties*.

## Useful display filters

Type these in Wireshark's display filter bar:

| To show | Display filter |
| - | - |
| Management frames | `wlan.fc.type == 0` |
| Control frames | `wlan.fc.type == 1` |
| Data frames | `wlan.fc.type == 2` |
| Beacons | `wlan.fc.type_subtype == 0x0008` |
| Frames to or from one device | `wlan.addr == aa:bb:cc:dd:ee:ff` |
| Frames from one network | `wlan.bssid == aa:bb:cc:dd:ee:ff` |
| Frames on one channel | `wlan_radio.channel == 36` |
| Retransmitted frames | `wlan.fc.retry == 1` |
| Frames weaker than -70 dBm | `wlan_radio.signal_dbm < -70` |
| Frames from one sensor or radio | `frame.interface_name == "name"` |

## Tell sources and channels apart

In a capture with more than one source, such as a [multi-source capture](https://docs.intuitibits.com/airtool2/capture-on-multiple-channels-and-sensors.md) or a Hamina Clip or Oscium Nomad capture with several radios, each frame records the interface that captured it:

| Source | Interface name |
| - | - |
| Built-in Wi-Fi adapter | The Mac's Wi-Fi interface, such as `en0` |
| Sensor | The sensor's name in lowercase, with spaces replaced by hyphens, followed by a colon and the interface name if you entered one, such as `lab-pi:wlan1` |
| Hamina Clip, Oscium Nomad | The name of the device's radio |
| WiFi Coconut | `WiFiCoconut` |

To add a column for it, right-click *Interface name* under *Frame* > *Interface id* in the *Packet Details*, and choose **Apply as Column**. Add columns for *Channel* and *Signal strength (dBm)* from *802.11 radio information* the same way, to see which channel and how strongly each frame was received.

For a capture that [hopped across channels](https://docs.intuitibits.com/airtool2/capture-using-the-built-in-wifi-adapter.md#capture-on-multiple-channels), the *Channel* column shows where each frame was captured. Gaps between frames on one channel are expected: the adapter was listening elsewhere.

## Decrypting traffic

*Airtool 2* doesn't decrypt traffic. For networks secured with WPA2-Personal, Wireshark can decrypt data frames if you give it the network's passphrase and the capture includes the 4-way handshake of each device you want to decrypt, which happens when the device connects. Other security types need more than the passphrase, and some can't be decrypted from a capture at all. A capture with [automatic frame slicing](https://docs.intuitibits.com/airtool2/use-automatic-frame-slicing.md) can't be decrypted. See [How to decrypt 802.11](https://wiki.wireshark.org/HowToDecrypt802.11) in the Wireshark wiki.

## See also

* [About packet captures](https://docs.intuitibits.com/airtool2/about-packet-captures.md)
* [Do live captures with Wireshark](https://docs.intuitibits.com/airtool2/do-live-captures-with-wireshark.md)
* [Wi-Fi security](https://docs.intuitibits.com/concepts/wifi-security.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.