# Architecture
Source: [https://docs.qualcomm.com/doc/80-70014-14/topic/wlan_sw_overview.html](https://docs.qualcomm.com/doc/80-70014-14/topic/wlan_sw_overview.html)
The architecture of the Wi-Fi is composed of three layers. These include the application
layer which is used for configuration and testing, the driver layer that facilitates
communication between the operating system (OS) and hardware, and the firmware layer
that manages the hardware.
Figure : Wi-Fi software architecture

### Application layer
The application layer includes the following key components that are required for
configuring Wi-Fi parameters, setting up Wi-Fi, and supporting factory testing and
debugging support:
Table : Application layer components
| Component | Description |
| --- | --- |
| Wpa\_supplicant | Wpa\_supplicant manages the secure connections to Wi-Fi
networks. It supports a variety of security protocols, including
WPA3, WPA2, and legacy ones. |
| Hostapd | The host access point daemon (hostapd) is a user space daemon
that enables a network interface card to function as both an
access point and an authentication server. In essence, hostapd
transforms your device into a wireless hotspot that other
devices can connect to.
In addition to providing Wi-Fi
connectivity, hostapd also handles authentication ensuring
that devices connecting to the network are authorized. It
supports various authentication methods, including WPA,
WPA2, WPA3, and EAP.
Furthermore, hostapd can
function as a remote authentication dial-in user service
(RADIUS) client for communication with a RADIUS server and
includes an integrated Extensible Authentication Protocol
(EAP) server for certain EAP methods. |
| Cnss diag | The cnss diag applications are used to diagnose Wi-Fi issues.
The cnss\_diag application interacts with the Wi-Fi driver to
collect relevant logs for diagnosing the Wi-Fi issues. |
| LOWI | The Location Wi-Fi (LOWI) daemon is associated with
location-based services and Wi-Fi positioning. It manages
Wi-Fi-related location information, such as determining the
location of your device based on nearby Wi-Fi access points. |
| FTM daemon | The Factory Test Mode (FTM) daemon pertains to wireless
communication. It enables remote access to a Qualcomm WLAN
module via the Qualcomm Radio Control Toolkit (QRCT). By
connecting to the WLAN module via QRCT, you can control the
Wi-Fi module over a network interface for tasks such as Wi-Fi
Radio Frequency (RF) validation and certification. |
### Wi-Fi driver layer
The Wi-Fi driver is a software component that facilitates communication between the
operating system and the wireless network hardware. The WLAN driver is responsible
for initializing the firmware and downloading Board Data Files (BDF) required to
bring up the WLAN RF. It manages both the control path and data path required for
the 802.11 protocol.
### Firmware/hardware layer
The Wi-Fi firmware is a software component embedded in the Wi-Fi hardware device and
is responsible for managing low-level communication with the hardware. The firmware
also handles 802.11 protocol-based tasks like scanning for networks, establishing
connections, and transmitting data over Wi-Fi hardware.
Last Published: Aug 07, 2024
[Previous Topic
Features](https://docs.qualcomm.com/bundle/publicresource/80-70014-14/topics/wi_fi_features.md) [Next Topic
Software](https://docs.qualcomm.com/bundle/publicresource/80-70014-14/topics/Check_WLAN_host_and_SS_platform_driver_source_codes.md)