>
Every core concept from the 802.11 module as a diagram, what it means in plain words, and a small worked example for the parts that are hard to picture. Read this before, or alongside, the ranked cheat sheet.
flowchart TB
L7["Layer 7 · Application"]:::soft
L6["Layer 6 · Presentation"]:::soft
L5["Layer 5 · Session"]:::soft
L4["Layer 4 · Transport"]:::soft
L3["Layer 3 · Network · IP"]:::soft
LLC["Layer 2 · Data Link — LLC"]:::soft
MAC["Layer 2 · Data Link — MAC
who talks, and when"]:::mac
PHY["Layer 1 · Physical — PHY
bits become radio waves"]:::phy
AIR(("The Air")):::air
L7 --> L6 --> L5 --> L4 --> L3 --> LLC --> MAC --> PHY --> AIR
classDef soft fill:#eceff4,stroke:#c3cbd9,color:#3a4150;
classDef mac fill:#7c3aed,stroke:#5b21b6,color:#ffffff;
classDef phy fill:#1766d6,stroke:#0f4ba0,color:#ffffff;
classDef air fill:#f5d76e,stroke:#b8930f,color:#4a3c00;
OSI is a 7-floor building. Your data rides the elevator down, floor by floor, until it leaves the building as a radio wave. The top floors don't care how it travels, they just hand it to the floor below.
802.11 only owns the bottom two: the PHY (turning bits into a wave) and the MAC half of the Data Link layer (deciding who gets to transmit). Everything in the whole module falls into one of these two.
For any term you meet, ask: is this about "who talks and when" or "how bits become a wave"?
CSMA/CA, RTS/CTS, hidden node → MAC. Frequencies, channels, OFDM, MIMO, modulation → PHY. Nothing in the module escapes these two buckets.
flowchart LR
A["Your data
0 1 0 1"] --> B["Modulation
ride bits on a carrier wave"]
B --> C["Antenna
wave into the air"]
C --> D(("Air"))
D --> E["Receiving antenna"]
E --> F["Demodulation
read bits off the wave"]
F --> G["Same data
0 1 0 1"]
A radio can't send a "1" or a "0" directly. It sends a steady carrier wave and modulates it, nudging the wave in a pattern that stands for your bits. The receiver reads those nudges back into bits.
Think of a flashlight you can't change, but you can cover and uncover it. The light is the carrier; covering it in a pattern is modulation. Morse code is exactly this: one steady light, nudged into dots and dashes that mean letters.
Frequency = how many times the wave repeats per second, measured in hertz. 2.4 GHz means 2.4 billion cycles every second. Wavelength = the physical length of one cycle. Amplitude = the wave's height, which maps to signal strength.
Higher frequency means a shorter wavelength. The rule of thumb: wavelength (m) = 300 / frequency (MHz).
2.4 GHz = 2400 MHz, so wavelength = 300 / 2400 = 0.125 m (about 12.5 cm). At 5 GHz it's 300 / 5000 = 0.06 m (6 cm). Shorter waves are easier to block, which is one reason 5 GHz has shorter range than 2.4 GHz through walls.
flowchart TB
SP["Radio Spectrum
all usable frequencies"] --> B24["Band: 2.4 GHz
2400 to 2485 MHz"]
SP --> B5["Band: 5 GHz"]
SP --> B6["Band: 6 GHz"]
B24 --> CH["14 numbered channels
only 5 MHz apart"]
CH --> W["but each channel is 22 MHz wide"]
W --> OV["so neighbours overlap"]
OV --> CLEAN["1, 6, 11 are the only
non-overlapping trio"]
classDef hot fill:#1766d6,stroke:#0f4ba0,color:#fff;
class CLEAN hot;
The spectrum is the whole highway. A band (2.4, 5, 6 GHz) is a stretch of that highway. A channel is a lane inside the band. The trap: lanes are numbered 5 MHz apart, but each lane is 22 MHz wide, so lanes bleed into their neighbours.
A channel number is just the center of a 22 MHz block that spreads 11 MHz each way. Channels are spaced 5 MHz apart, so to clear 22 MHz you need to jump 5 channels. 5 channels × 5 MHz = 25 MHz between centers, just wider than the 22 MHz block. That is why 1, 6, 11 barely avoid touching, and nothing else does.
Channel 1 spans 2401–2423. Channel 2 spans 2406–2428. They overlap heavily, even though the names look different.
Channel 6 spans 2426–2448. So 1 ends at 2423, 6 starts at 2426 — a clean 3 MHz gap, no overlap.
Where it bites you: capturing on channel 6 while locked to channel 4 gives you a smeared, partial signal, because 4 and 6 overlap. Always lock your card to the target's exact channel.
flowchart TB
SIM["Simplex
one way only
e.g. FM radio"]
HALF["Half Duplex
both ways, but take turns
e.g. walkie-talkie ← Wi-Fi"]:::hot
FULL["Full Duplex
both ways at once
e.g. phone call"]
SIM --> HALF --> FULL
classDef hot fill:#7c3aed,stroke:#5b21b6,color:#fff;
A Wi-Fi radio can transmit or receive, never both at the same instant. So it can't hear a collision while it's talking. The best it can do is listen carefully before talking, which is exactly what CSMA/CA does next.
A walkie-talkie: while you hold the button and talk, you're deaf to the other side. You have to release and listen. Two people pressing at once just garble each other, and neither knows it happened.
flowchart TD
S["Want to send"] --> L["Listen to the channel"]
L --> Q{"Busy?"}
Q -->|Yes| W["Wait a random backoff"] --> L
Q -->|No| T["Transmit the frame"]
T --> A{"ACK came back?"}
A -->|Yes| OK["Success"]
A -->|No| W
Carrier Sense Multiple Access with Collision Avoidance. Because radios can't detect a collision mid-send, every station listens first, and if the air is busy it waits a random amount of time before trying again. The random wait stops two waiting stations from jumping at the exact same moment.
Success is confirmed by an ACK from the receiver. No ACK means assume collision, back off, retry.
A polite group conversation: before you speak you pause to check nobody else is talking. If two of you start together, you both stop and wait a random beat, so you don't collide again on the restart.
flowchart LR
subgraph SISO["SISO — old (a/b/g)"]
TX1["1 antenna"] --> RX1["1 antenna"]
end
subgraph MIMO["MIMO — n and later"]
T1["ant 1"] --> R1["ant 1"]
T2["ant 2"] --> R2["ant 2"]
T3["ant 3"] --> R3["ant 3"]
end
A stream is one independent flow of data sent in parallel. SISO uses a single antenna path, one stream, like one pipe. MIMO uses several antennas to send multiple streams at once, like several pipes side by side, multiplying the data rate.
Filling a pool with one hose versus three hoses at once. Same water, three times faster. Each hose is a stream. MIMO even turns wall bounces (multipath) to its advantage instead of suffering from them.
flowchart LR
C["Target client sends
3 streams"] --> Q{"Your adapter's
stream count?"}
Q -->|"3 or more"| OK["Full capture, can decode"]:::ok
Q -->|"fewer than 3"| NO["Partial, cannot decode"]:::bad
classDef ok fill:#1766d6,stroke:#0f4ba0,color:#fff;
classDef bad fill:#c23b2e,stroke:#8f2a20,color:#fff;
Notation is t x r : s = TX chains × RX chains : spatial streams. To capture and decode a device's traffic, your adapter needs streams equal to or greater than the target's. Fewer streams means you only catch part of the picture and can't reassemble it.
Antennas ≥ streams always. A 4-antenna card can still be only 3-stream: 4x4:3 (e.g. Alfa AWUS1900). Buy and choose by stream count, not antenna count.
Target AP streams 3 spatial streams. Your cheap 1x1:1 dongle grabs one, so the captured frames are incomplete and won't decrypt even with the right key. Swap to a 3-stream (or higher) adapter and the capture completes.
flowchart LR
P["Primary
Channel 1"] --> B["HT40+
bonded 40 MHz
double the rate"]
SEC["Secondary
Channel 5 (+4 away)"] --> B
Base channel width is 20 MHz (called HT20). HT40 glues two 20 MHz channels into 40 MHz for double speed. The secondary sits four channels away, not next door, because adjacent channels overlap.
In 2.4 GHz: HT40+ runs channels 1–7, HT40- runs 5–11. The + means the secondary is above the primary, - means below.
Channel 1 HT40+ bonds channel 1 (primary) with channel 5 (secondary, +4). Channel 1 HT40- can't exist, there's no channel below 1 to bond. Channel 5 HT40- flips it: primary 5, secondary 1.
flowchart TD
AP["AP picks a DFS channel"] --> SC["Listen ~60 s before use"]
SC --> R{"Radar detected?"}
R -->|No| U["Use the channel"] --> M["Keep monitoring"] --> R
R -->|Yes| LV["Leave for 30+ minutes"]
Parts of the 5 GHz band are shared with radar (weather, military). Dynamic Frequency Selection forces the AP to scan first, and if it ever hears radar, vacate that channel for at least 30 minutes. TPC (Transmit Power Control) is its partner, keeping power at the minimum needed.
If your target AP sits on a DFS channel and a radar hit makes it hop mid-capture, your session breaks and the AP reappears on a new channel. If a capture suddenly dies on 5 GHz, suspect DFS and rescan.
OSWP runs on the aircrack-ng suite plus a few companions. The mental model: first put your card in listening mode, then find targets, then capture, then (if needed) provoke traffic, then crack. Each tool owns one step.
flowchart TB
A["airmon-ng
card → monitor mode"] --> B["airodump-ng
scan + capture to file"]
B --> C{"Need to speed
things up?"}
C -->|"handshake / traffic"| D["aireplay-ng
deauth, inject, replay"]
C -->|"just listen"| E["keep capturing"]
D --> E
E --> F["aircrack-ng
crack WEP / WPA from capture"]
classDef mon fill:#1766d6,stroke:#0f4ba0,color:#fff;
classDef act fill:#7c3aed,stroke:#5b21b6,color:#fff;
classDef crk fill:#c23b2e,stroke:#8f2a20,color:#fff;
class A,B mon;
class D act;
class F crk;
| Tool | Step | Why you use it |
|---|---|---|
| airmon-ng | Setup | Switches the adapter into monitor mode so it hears all nearby frames, not just its own network. Also kills interfering processes. |
| airodump-ng | Recon + capture | Lists APs and clients (BSSID, channel, encryption, signal) and writes the raw frames, including handshakes, to a .cap file. |
| aireplay-ng | Active attack | Injects frames: deauth to force a reconnect (and capture the handshake), or replay to generate WEP traffic faster. |
| aircrack-ng | Crack | Takes the .cap and recovers the key: statistical attack on WEP, dictionary attack on the WPA/WPA2 handshake. |
| airdecap-ng | Post | Decrypts a captured .cap once you have the key, so you can read the actual traffic. |
| wifite | Automation | Wraps the whole suite into one automated run. Handy, but OSWP wants you to know the manual steps underneath. |
| wpa_supplicant / wash / reaver | WPS & assoc. | wash finds WPS-enabled APs; reaver brute-forces the WPS PIN; wpa_supplicant handles association during some attacks. |
| Wireshark / tcpdump | Analysis | Opens the capture to inspect frames by hand: confirm a handshake is complete, read decrypted traffic, debug why a capture failed. |
WEP is broken by math, not guessing. You collect many data frames (IVs); with enough of them aircrack-ng recovers the key regardless of its strength. So the game is volume — that's why you use aireplay-ng to replay traffic and generate IVs fast.
WPA/WPA2 can't be solved by math. You capture one 4-way handshake, then run a dictionary attack against it offline. The game is a good wordlist, not traffic volume — aireplay-ng is used only to deauth a client so it reconnects and you catch that one handshake.
A normal (managed) card only hears frames addressed to it on its own network. Monitor mode makes the card a passive ear on the whole channel, which is the whole premise of capturing someone else's handshake. This connects straight back to the streams rule: if the target uses more streams than your card, even perfect monitor mode can't reassemble the frames.
| Std | Band(s) | Headline feature | a.k.a. |
|---|---|---|---|
| b | 2.4 | CCK, 11 Mbit/s | — |
| a | 5 | OFDM, 54 Mbit/s | — |
| g | 2.4 | OFDM, 54 Mbit/s, b-compatible | — |
| n | 2.4 + 5 | MIMO, up to 4 streams | Wi-Fi 4 |
| ac | 5 only | 80/160 MHz, MU-MIMO (down) | Wi-Fi 5 |
| ax | 2.4 + 5 + 6 | OFDMA, MU-MIMO up+down | Wi-Fi 6 / 6E |
| ad | 60 | WiGig, multi-Gbit, very short range | — |
| h | 5 | Adds DFS + TPC (radar rules) | — |
Read it as a story: b/a/g set the bands and basic modulation; n adds MIMO; ac widens channels and serves multiple devices; ax makes dense environments efficient with OFDMA; ad is the exotic 60 GHz branch; h is the rulebook for sharing 5 GHz with radar.