13 Min Read • Updated May 2026

How WiFi Works: Radio Waves, 802.11 Standards & Wireless Security Explained

WiFi silently moves gigabits of data through walls, across rooms, and between billions of devices every second — all through invisible radio waves. Discover the physics, protocols, and security mechanisms that make wireless networking work.

WiFi signal transmission diagram showing router broadcasting 2.4GHz and 5GHz radio waves to connected devices
Frequency Bands

2.4 GHz, 5 GHz, 6 GHz (WiFi 6E)

Latest Standard

Wi-Fi 7 (802.11be) — 2024

Max Theoretical Speed

WiFi 7: 46 Gbps | WiFi 6: 9.6 Gbps

Max Indoor Range

~50m (2.4 GHz) | ~30m (5 GHz)

Security Protocols

WPA3 (current) | WPA2 (legacy)

Channel Width

20/40/80/160/320 MHz (WiFi 7)

What Is WiFi?

WiFi (short for Wireless Fidelity) is a family of wireless networking protocols based on the IEEE 802.11 standard, enabling devices to communicate over radio waves without physical cables. First commercially deployed in 1997, WiFi now connects over 22 billion devices worldwide and is governed by the Wi-Fi Alliance, a non-profit industry consortium.

For electronics makers, WiFi opens the door to connected IoT projects. The ESP32 microcontroller includes a built-in 2.4 GHz WiFi radio, making it the go-to chip for smart sensors, web servers, and cloud-connected devices without any additional hardware.

The Radio Wave Foundation

WiFi transmits data by encoding digital information onto electromagnetic radio waves. The process from click to packet delivery involves several physical layers:

  1. Data Encoding: Your device breaks data into packets and encodes them digitally (binary 0s and 1s).
  2. Modulation: A modulator converts binary data into analog variations of a carrier radio wave using techniques like QAM (Quadrature Amplitude Modulation) — WiFi 6 uses 1024-QAM, encoding 10 bits per symbol vs 8-bit 256-QAM in WiFi 5.
  3. Transmission: The modulated signal is amplified and broadcast from the antenna at 2.4 GHz or 5 GHz. Radio waves propagate at the speed of light (3×10⁸ m/s).
  4. Reception: The receiving device's antenna captures the radio wave and its demodulator reverses the process, recovering the original digital packets.
OFDM — The Secret Sauce: Modern WiFi uses Orthogonal Frequency Division Multiplexing (OFDM), which splits the channel into dozens of sub-carriers transmitting data simultaneously. This dramatically improves efficiency and resistance to interference. WiFi 6 introduced OFDMA which allocates sub-carriers to different users simultaneously.

WiFi Standards: From 802.11b to WiFi 7

GenerationStandardYearMax SpeedBands
802.11b199911 Mbps2.4 GHz
802.11g200354 Mbps2.4 GHz
WiFi 4802.11n2009600 Mbps2.4 / 5 GHz
WiFi 5802.11ac20133.5 Gbps5 GHz
WiFi 6802.11ax20199.6 Gbps2.4 / 5 GHz
WiFi 6E802.11ax (ext)20219.6 Gbps2.4 / 5 / 6 GHz
WiFi 7802.11be202446 Gbps2.4 / 5 / 6 GHz

2.4 GHz vs 5 GHz: Which Band to Use?

📡 2.4 GHz Band

  • ✅ Longer range (50m+ indoors)
  • ✅ Better wall/obstacle penetration
  • ✅ Supported by all WiFi devices
  • ❌ Lower max speed (up to 600 Mbps)
  • ❌ Only 3 non-overlapping channels (1, 6, 11)
  • ❌ Heavy interference from Bluetooth, microwaves

⚡ 5 GHz Band

  • ✅ Much higher max speed (up to 9.6 Gbps)
  • ✅ 25 non-overlapping channels
  • ✅ Less congested, lower interference
  • ❌ Shorter range (~30m indoors)
  • ❌ Weaker wall penetration
  • ❌ Higher power consumption
IoT Tip: For ESP32 and Arduino-based IoT sensors, always use 2.4 GHz WiFi. These devices transmit small data packets infrequently and benefit far more from range and reliability than raw speed. The ESP32 only supports 2.4 GHz anyway.

WiFi Security: WEP → WPA2 → WPA3

WiFi security has evolved dramatically. Here's what each generation protects against:

WEP (1997)

🔴 Broken

Wired Equivalent Privacy — completely broken by 2001. RC4 cipher with static keys can be cracked in minutes with freely available tools. Never use.

WPA/TKIP (2003)

🟠 Deprecated

WiFi Protected Access improved on WEP with TKIP (Temporal Key Integrity Protocol), but still vulnerable to TKIP MIC attacks and offline dictionary attacks.

WPA2/CCMP (2004)

🟡 Acceptable

Introduced AES-128 encryption via CCMP. Vulnerable to PMKID attacks allowing offline password cracking. Use strong passwords (20+ chars) as mitigation.

WPA3/SAE (2018)

🟢 Recommended

Simultaneous Authentication of Equals (SAE) replaces PSK. Provides forward secrecy — each session uses unique keys. Captures cannot be used for offline cracking.

⚠️ Security Warning: If your router still uses WEP or WPA1 (TKIP), upgrade immediately. These protocols are broken and any attacker in WiFi range can intercept all your network traffic within minutes.

WiFi in IoT Projects: ESP32 Basics

The ESP32 integrates a full 802.11 b/g/n WiFi radio alongside a dual-core 240 MHz processor, making it the most popular microcontroller for WiFi-connected maker projects. It supports three WiFi modes:

Station (STA) Mode

Connects to an existing WiFi router as a client. Most common mode for IoT sensors sending data to cloud services or a local server.

Access Point (AP) Mode

Creates its own WiFi network. Other devices (phones, tablets) connect directly to the ESP32. Useful for device configuration portals.

Combined STA+AP Mode

Acts as both client and access point simultaneously. Allows local device configuration while maintaining cloud connectivity.

Frequently Asked Questions

How does WiFi transmit data wirelessly?

WiFi transmits data by converting digital information into radio waves using a process called modulation. The router encodes data onto a carrier wave in the 2.4 GHz or 5 GHz frequency bands using techniques like OFDM (Orthogonal Frequency Division Multiplexing). The receiving device's wireless adapter picks up these radio waves, demodulates them, and converts them back into digital data.

What is the difference between 2.4 GHz and 5 GHz WiFi?

2.4 GHz WiFi has longer range (up to 50m indoors) and better wall penetration, but lower maximum speed and more interference from other devices. 5 GHz WiFi offers higher speeds (up to 3.5 Gbps on WiFi 6) and less congestion, but shorter range (~30m) and poorer wall penetration. Use 2.4 GHz for range-dependent IoT devices and 5 GHz for high-bandwidth streaming.

What do WiFi 4, WiFi 5, and WiFi 6 mean?

These are simplified marketing names for IEEE 802.11 standards: WiFi 4 = 802.11n (2009, max 600 Mbps), WiFi 5 = 802.11ac (2013, max 3.5 Gbps), WiFi 6 = 802.11ax (2019, max 9.6 Gbps, introduces OFDMA), WiFi 6E extends to the 6 GHz band, and WiFi 7 = 802.11be (2024, max 46 Gbps).

How does WPA3 make WiFi more secure than WPA2?

WPA3 improves on WPA2 in three key ways: (1) SAE handshake prevents offline dictionary attacks. (2) Forward secrecy ensures past sessions remain secure even if the password is later compromised. (3) 192-bit encryption for enterprise networks vs WPA2's 128-bit.

How do I use WiFi with ESP32 for IoT projects?

The ESP32 has built-in 2.4 GHz WiFi (802.11 b/g/n). Use WiFi.begin(ssid, password) to connect, then use HTTPClient for HTTP requests or the MQTT library for IoT messaging. The ESP32 supports Station mode, Access Point mode, or combined Station+AP mode.

Conclusion

WiFi is a triumph of engineering — radio physics, digital signal processing, cryptography, and networking protocols working invisibly together to deliver gigabits of data through the air. From the OFDM modulation scheme that handles multipath interference to WPA3's forward-secret authentication, every layer exists to solve a real problem. For makers, the ESP32 brings this entire wireless stack to a $4 microcontroller, opening infinite possibilities for connected projects.

Start your WiFi IoT journey with the ESP32 guide, explore how GPS works alongside WiFi for positioning, or check out beginner IoT projects.

📚 References & Sources

Related Resources