Sub topic 16
Wi-Fi Security: WPA2 and WPA3, and Roaming
This chapter assumes you know what an SSID and a BSSID are, and that you understand association from the earlier chapters. Here you learn how Wi-Fi protects traffic, and what happens when a device moves between access points.
WPA2 and WPA3
Radio waves reach anyone nearby, so Wi-Fi encrypts frames between the device and the access point. Two generations are in common use.
WPA2 encrypts data with AES in CCMP mode. In Personal mode, all users share one passphrase. The passphrase and the SSID produce a master key. A 4-way handshake then derives a fresh session key for each device.
WPA2-Personal has a weakness. An attacker can capture the handshake and guess passphrases offline, at the speed of their hardware. A weak passphrase falls quickly.
WPA3 fixes this. WPA3-Personal replaces the shared-key exchange with SAE (Simultaneous Authentication of Equals). Each guess now needs a live exchange with the access point, so offline guessing no longer works. Past traffic also stays safe if the passphrase leaks later (forward secrecy). WPA3 requires Protected Management Frames, which stop forged deauthentication frames from kicking devices off.
| Feature | WPA2-Personal | WPA3-Personal |
|---|---|---|
| Key exchange | PSK, 4-way handshake | SAE, then 4-way handshake |
| Offline passphrase guessing | Possible | Not possible |
| Forward secrecy | No | Yes |
| Protected management frames | Optional | Required |
Two related options exist. WPA2/WPA3-Enterprise uses 802.1X with a RADIUS server, so each user has their own credentials. OWE (Enhanced Open) encrypts open networks without a password. The 6 GHz band allows only WPA3 and OWE.
Many access points offer a transition mode that accepts both WPA2 and WPA3 clients. It is convenient, but an attacker can target the WPA2 side.
You can check what a nearby network advertises on Linux:
sudo iw dev wlan0 scan | grep -E 'SSID:|Authentication suites:'PSK means WPA2-Personal. SAE means WPA3-Personal. IEEE 802.1X means Enterprise.
Roaming between access points
Larger sites use several access points with the same SSID and security settings. Together they form an ESS (extended service set). Each access point has its own BSSID and should use a different channel from its neighbors.
Roaming is the client's decision. The device watches its signal and, when it drops, scans for a better BSSID. It then reassociates and repeats authentication. With WPA2/WPA3-Enterprise, this can take hundreds of milliseconds and may drop a voice call.
Three amendments make roaming faster:
- 802.11k gives clients a list of nearby access points, so scanning is shorter.
- 802.11v lets an access point suggest that a client move.
- 802.11r (fast BSS transition) reuses key material, so the handshake is quick.
A common fault is the "sticky client". It holds on to a distant access point because its signal is still usable. Overlapping coverage with sensible power settings, plus 802.11k/v/r, reduces this.
Exercise
A network uses WPA2-Personal with a short, common passphrase. Why is it at risk, and which WPA3 feature removes that risk?
Show answer
An attacker can capture the 4-way handshake and test passphrases offline, so a weak passphrase is found quickly. WPA3-Personal uses SAE, which needs a live exchange for every guess, so offline guessing is not possible.