SkillPilotAI

Wi-Fi: standards, channels and security

Wi-Fi (IEEE 802.11) shares the air between every nearby device, so speed depends on the standard, the band, the channel and how crowded it is; security depends on WPA2/WPA3 and, in offices, 802.1X. Knowing these explains most "why is Wi-Fi slow / unsafe" questions.

176.1 Why is Wi-Fi slow at night?

  • Example: in an apartment the laptop video buffers every night, while on a cable everything is smooth.
  • The problem is not the internet but the air: all neighbours' routers talk in the same radio space.
  • Only one device can talk on a channel at a time, so a bigger crowd means a longer wait.

176.2 802.11 standards

StandardBandKey feature
802.11b / g2.4 GHz11 / 54 Mbps (old)
802.11a5 GHz54 Mbps (old)
802.11n = Wi-Fi 42.4 + 5 GHzMIMO (multiple antennas), 40 MHz
802.11ac = Wi-Fi 55 GHz80 / 160 MHz, MU-MIMO
802.11ax = Wi-Fi 6 / 6E2.4 + 5 (+ 6 GHz for 6E)OFDMA: one AP serves many devices at once, built for crowds
802.11be = Wi-Fi 72.4 / 5 / 6 GHz320 MHz channels, multi-link

176.3 2.4 vs 5 vs 6 GHz

BandRangeChannels / speedNotes
2.4 GHzLongest, passes walls wellOnly 3 clean channels, crowdedBluetooth and microwave ovens share it
5 GHzLessMany more channels, more speedGood balance
6 GHzShortestMost free space, widest channelsWi-Fi 6E / 7, WPA3 mandatory

176.4 Channels and interference

  • On 2.4 GHz each channel is 20 MHz wide but centres are only 5 MHz apart, so nearby channels overlap.
  • Only channels 1, 6 and 11 do not overlap at all.
  • An AP on channel 3 sits on top of both 1 and 6: neighbours' signal becomes noise, causing retries.
  • Fix: pick the freest of 1, 6, 11, or move to 5 GHz.
Channel widthHighway lanes
20 MHz1x
40 MHz2x
80 / 160 MHz4x / 8x
320 MHz (Wi-Fi 7, 6 GHz)16x
  • Wider channel = more speed but fewer separate channels; in a crowded office narrower channels work better.

176.5 SSID, BSSID and roaming

  • SSID = network name (HomeNet); BSSID = MAC address of one specific AP radio behind that name.
  • Hall AP 02:aa:bb:cc:00:01 and Bedroom AP 02:aa:bb:cc:00:02 both broadcast HomeNet.
  • Roaming: as the hall signal weakens, the phone reassociates to a stronger BSSID of the same SSID.

176.6 How a device connects

Probe, authenticate, associate, 4-way handshake
  1. 1.Phone sends Probe Request (SSID: any)

  2. 2.AP replies Probe Response: SSID HomeNet, RSN WPA2/WPA3

  3. 3.Authentication (open) + Association Request

  4. 4.Association Response: status success

  5. 5.EAPOL 1/4..4/4: ANonce, SNonce + MIC, GTK, ACK -> fresh session key

  6. 6.Encrypted link up, then DHCP gives the IP

The password itself never travels through the air

176.7 Security: WPA2 vs WPA3

  • WPA2-Personal: everyone shares one password (PSK). An attacker who captures the 4-way handshake can try crores of passwords offline; weak ones crack in minutes.
  • WPA3-Personal: SAE handshake, every guess needs a live exchange with the AP, so offline guessing is useless.
  • WPA3 gives forward secrecy (a leaked password cannot decrypt old traffic) and makes PMF (802.11w) mandatory.
PointWPA2-PersonalWPA3-PersonalEnterprise (802.1X)
AuthenticationPSK + 4-way handshakeSAEEAP via RADIUS
Offline dictionary attackPossibleNot possiblePer-user credentials
Forward secrecyNoYesDepends on EAP method
PMF (802.11w)OptionalMandatoryOptional / mandatory with WPA3
Revoking one userChange everyone's passwordChange everyone's passwordDisable one account

176.8 Enterprise: 802.1X and RADIUS

802.1X login
  1. 1.Laptop (supplicant) associates with the office AP

  2. 2.AP (authenticator) blocks data, relays EAP

  3. 3.EAP: user priya -> RADIUS server 192.168.1.5 (UDP 1812)

  4. 4.RADIUS checks password or certificate, sends Access-Accept

  5. 5.Laptop gets the network with its own per-user key

Disabling one account ends that user's access

176.9 Practical: what the adapter supports (netsh)

Terminal
netsh wlan show drivers
Output
  Radio types supported     : 802.11n 802.11g 802.11b  802.11w Management Frame Protection supported : Yes  Hosted network supported  : No  Authentication and cipher supported in infrastructure mode:      Open             None      WPA2-Personal    CCMP      Open             WEP-104bit      WPA-Personal     TKIP      WPA2-Personal    TKIP      WPA2-Enterprise  CCMP      WPA2-Enterprise  Vendor defined
  • No 802.11a/ac/ax in radio types: this adapter works only on 2.4 GHz.
  • No WPA3 line: even with PMF = Yes it cannot join a WPA3-only network, so such networks run in WPA2/WPA3 transition mode.
  • Scan: netsh wlan show networks mode=bssid lists each SSID with its BSSIDs, signal %, radio type, channel and encryption (not run on the office PC; fields from Microsoft docs).

176.10 Practical: Linux (iw)

Terminal
zcat /proc/config.gz | grep 80211=grep -c cfg80211 /proc/modulesls /sys/class/netls /sys/class/ieee80211
Output
CONFIG_CFG80211=mCONFIG_MAC80211=m0lols: /sys/class/ieee80211: No such file or directory
  • cfg80211/mac80211 are loadable modules, not loaded; the Docker VM has no Wi-Fi card, so only lo exists (iw was not run, to avoid auto-loading the module).
  • With a real card: iw dev (interfaces), iw list (bands, capabilities), iw dev wlan0 scan (nearby BSSIDs), iw dev wlan0 link.
Output
$ iw dev wlan0 link          (example from kernel wireless docs)Connected to 68:7f:74:3b:b0:01 (on wlan0)        SSID: tesla-5g-bcm        freq: 5745        signal: -31 dBm        tx bitrate: 300.0 MBit/s MCS 15 40Mhz short GI
  • freq 2437 = channel 6 on 2.4 GHz; freq 5745 = channel 149 on 5 GHz (here with a 40 MHz channel).

176.11 Common mistakes

  • Hiding the SSID for security: beacons still carry the BSSID and phones shout the name in probe requests; scanners find it in seconds.
  • Using channels 2-5 or 7-10 on 2.4 GHz (overlap).
  • Using 80/160 MHz channels in a crowded office.
  • A short WPA2 password: it can be cracked offline from one captured handshake.

176.12 Interview tips

  • WPA2 vs WPA3: PSK + 4-way handshake (offline attack possible) vs SAE (no offline guessing, forward secrecy, PMF mandatory); Enterprise uses 802.1X + RADIUS.
  • Neighbours on 1 and 6, you on 4: you overlap both; move to 11 or to 5 GHz.
  • n / ac / ax = Wi-Fi 4 / 5 / 6; OFDMA is the Wi-Fi 6 feature for crowds.
  • SSID is the name, BSSID is the MAC of one AP radio.