MATLAB WLAN Toolbox
The MATLAB WLAN Toolbox is one of the most comprehensive and powerful software platforms available for Wi-Fi research and development. It provides a rich collection of functions, reference implementations, and example projects covering both the Physical (PHY) and Medium Access Control (MAC) layers of IEEE 802.11 standards. Researchers can readily generate and decode Wi-Fi waveforms, model wireless channels, evaluate protocol performance, and prototype new algorithms without the complexity of developing a complete Wi-Fi stack from scratch.
A major advantage of the WLAN Toolbox is its seamless integration with other MATLAB toolboxes, including Signal Processing Toolbox, Communications Toolbox, Deep Learning Toolbox, and Phased Array System Toolbox. This enables rapid development and evaluation of advanced techniques such as channel estimation, localization, wireless sensing, machine learning, and radio frequency fingerprint identification (RFFI).
Furthermore, MATLAB provides extensive Software-Defined Radio (SDR) support through the Communications Toolbox Support Packages. Researchers can interface MATLAB directly with a variety of SDR platforms, including devices from Analog Devices, Ettus Research (USRP), and PlutoSDR. This allows algorithms developed and validated in simulation to be rapidly transitioned to over-the-air experiments with minimal code modifications. Users can generate Wi-Fi waveforms in MATLAB, transmit and receive them using SDR hardware, and analyze real-world channel effects within the same development environment.
For these reasons, the MATLAB WLAN Toolbox is an excellent starting point for Wi-Fi research. It enables rapid prototyping, reproducible experimentation, and comprehensive performance evaluation before investing significant effort in implementing and debugging algorithms on commercial Wi-Fi hardware or embedded platforms.
MATLAB Examples:
- 802.11n Packet Error Rate Simulation for 2x2 TGn Channel: Simulation
- Recover and Analyze Packets in 802.11 Waveform: SDR required
SDR Implementations
While the MATLAB WLAN Toolbox is an excellent platform for developing and evaluating new Wi-Fi algorithms, it is primarily designed for simulation and prototyping rather than high-performance real-time operation. The interpreted nature of MATLAB and the computational complexity of PHY-layer processing can result in relatively slow execution, particularly for large-scale simulations, long packet captures, or data-intensive applications such as machine learning and wireless sensing. Consequently, the WLAN Toolbox is best suited for validating concepts, testing algorithms, and gaining insights into system behavior before moving to practical implementations.
For researchers seeking real-time experimentation and over-the-air operation, several Software-Defined Radio (SDR)-based Wi-Fi implementations are available. These platforms implement the Wi-Fi PHY, and in some cases parts of the MAC layer, on SDR hardware using frameworks such as GNU Radio, FPGA-based processing, or custom software stacks. Examples include PicoScenes, OpenWiFi, gr-ieee802-11, and other SDR-based IEEE 802.11 projects. Compared with MATLAB simulations, SDR implementations enable real-world testing under realistic channel conditions and provide greater flexibility for modifying protocol behavior, collecting raw baseband samples, and evaluating hardware impairments.
A practical research workflow is therefore to first develop and validate algorithms using the MATLAB WLAN Toolbox, where the extensive libraries and debugging tools accelerate innovation, and then migrate promising solutions to an SDR-based platform for real-time experimentation and performance evaluation in operational wireless environments.
GNU Radio Implementation
PicoScenes
- Supported Hardawre: USRP, HackRF One, AX210/AX200, QCA9300, and IWL5300
Openwifi
- openwifi is an SDR (Software-Defined Radio) implementation for IEEE802.11/Wi-Fi design with Linux mac80211 compatible full-stack.
- Supported Hardawre: zynq FPGA + FMCOMMS2/3/4 RF board
- For Chinese user, there is a presentation video introducing openwifi by Dr. Jiao.
Network Interface Cards CSI Extraction
While SDR platforms provide unparalleled flexibility for Wi-Fi research, they are specialized research tools and are not representative of the Commercial Off-The-Shelf (COTS) Wi-Fi devices used in everyday applications. In practice, most laptops, smartphones, tablets, and IoT devices rely on dedicated Wi-Fi Network Interface Cards (NICs), where the PHY and MAC functions are implemented in proprietary hardware, firmware, and drivers. As a result, many research techniques developed on SDR platforms cannot be directly deployed on commodity Wi-Fi devices. Therefore, understanding the capabilities and limitations of Wi-Fi NICs is essential for researchers who aim to develop solutions that can be implemented and evaluated on real-world COTS hardware.
Most commercial Wi-Fi NICs expose only the Received Signal Strength Indicator (RSSI) to users and applications, while Channel State Information (CSI) is typically not accessible through standard device drivers and firmware. RSSI represents the average received signal power over an entire packet and therefore provides only a coarse-grained characterization of the wireless channel.
In contrast, CSI offers a much richer and finer-grained description of the channel. In OFDM-based Wi-Fi systems, CSI captures the complex channel response—including both amplitude and phase information—for individual subcarriers. As a result, CSI reveals how the wireless channel varies across frequency and provides detailed information about multipath propagation, fading, and environmental changes. This fine-grained channel information has enabled a wide range of research applications, including indoor localization, human activity sensing, wireless imaging, and radio frequency fingerprint identification (RFFI), which would be difficult or impossible to achieve using RSSI measurements alone.
There are some CSI extraction tools for the commercial NICs.
Intel 5300 NIC
There is the Linux 802.11n CSI Tool for Intel 5300 NIC. This Intel NIC together with the CSI tool have been used extensively by researchers and led to many excellent research papers. A list of the relevant publications can be found at External resource.
Please note PCI-e interface is required for these NICs.
Atheros Chipsets
There is Atheros CSI Tool. A list of the relevant publications can be found at External resource.
Braodcom Wi-Fi Chipsets
- nexmon
- nexmon csi
- WiFiEye - an Interactive Real-Time Workflow for Wi-Fi-Based Sensing
- Reverse-engineering Broadcom wireless chipsets
ESP32 CSI Toolkit
Software Tool
Scapy
Scapy official website defines
Scapy is a Python program that enables the user to send, sniff and dissect and forge network packets. This capability allows construction of tools that can probe, scan or attack networks.
There is a library supporting IEEE 802.11.
Code Examples:
- PythonScapyDot11_TheBook
- Fake a WLAN connection via Scapy
- Generating Wi-Fi communication in Scapy tool CWAP 802.11- Probe Request/Response
- Wi-Fi Karma: A Brief Guide On Probe Response Frames
Radiotap
- What is radiotap? External resource
Wireshark - Network Monitoring
- Download
- Wireshark User Guide
Wireshark is a network packet analyzer. A network packet analyzer presents captured packet data in as much detail as possible. You could think of a network packet analyzer as a measuring device for examining what’s happening inside a network cable, just like an electrician uses a voltmeter for examining what’s happening inside an electric cable (but at a higher level, of course).
Check more information at WireShark page.
Return to the Main Page of Wireless Communication Technologies or Wi-Fi.