Start the Wi-Fi subsystem
If the device is started in STA mode, Wi-Fi is active by default, that is, the Wi-Fi host driver and wpa_supplicant are launched during the boot process of the device.- Ensure that the device is connected to the host over UART by performing the steps listed in Connect to a UART shell.
- To confirm if the Wi-Fi host driver is loaded, run the following command on the debug UART console:
- Search for the
wlan0interface in the output: Sample output - To verify if wpa_supplicant is active, run the following command:
The following output indicates that the wpa_supplicant has been successfully enabled:
As Predictable Network Interface Names enabled by default:
- For non-PCIe interfaces, the WLAN interface name is
wlanX(RB3GEN2, Shikra). - For PCIe interfaces,
wlanXis renamed towlpXsY, where:X= PCIe port index + 1Y= device index
Scan for Wi-Fi APs
A Wi-Fi scan finds the APs listed in the vicinity that must be initiated through thenmcli command line tool.
To initiate a Wi-Fi scan using nmcli run the following command:
Sample outputNote To exit from the standard input shell, press CTRL+C.
Set up a Wi-Fi station
In the STA mode, the device operates as a client and it can connect to a wireless hotspot or router. Establish a wireless connection through thenmcli command line tool.
To set up the Wi-Fi in STA mode, perform the following steps:
- Ensure that the device is connected to the host over UART by performing the steps listed in Connect to a UART shell.
- To establish a connection to an AP, run the following command:
For example, run the commandwhere, the Wi-Fi SSID is
QualcommWiFiand the Wi-Fi password is1234567890. Sample outputNote If you see a network error message while running the command, then run one of the following commands to trigger the Wi-Fi scan and verify the intended AP. - To verify the connection state, run the following command:
Sample output
- To verify the connection status, perform the following steps:
- To view the device status, run the following command:
Sample output
- To view the additional connection information, run the following command:
Sample output
- Verify if the IP address is assigned on the
wlan0interface by running theip addr show wlan0command in the UART console.Sample output - Verify if the AP or router is connected to the Internet by pinging the following public DNS IP:
Sample outputNote If you are connected to one network, but want to use a different connection, you can disconnect by switching the connection to down by specifying the SSID
nmcli con down ssid/uuid. Alternatively, if you have multiple connections with the same SSID, use the UUID. Note To connect to another saved connection, simply pass the up option in thenmclicommand line tool by running the following command.Ensure that you specify the SSID or UUID of the new network that you want to connect to. Note To exit from the standard input shell, press CTRL+C. For more information aboutnmcli, see https://www.linux.org/docs/man1/nmcli.html and https://networkmanager.dev/docs/api/latest/nmcli.html.
- To view the device status, run the following command:
Set up a Wi-Fi hotspot
Ensure that you enable SSH by following the steps listed in Sign in using SSH. Set up a Wi-Fi hotspot in SoftAP mode by performing the following steps: Run the SSH using the following command:192.168.1.22, run the following command:
hostapd.conf file is available at /etc location. This file configures the RB3 Gen 2 device as a Wi-Fi SoftAP operational mode with SSID as QSoftAP and password as 1234567890.
- Add the Wi-Fi SoftAP operational mode interface by running the following command:
- Reconfigure Wi-Fi SoftAP operational mode by performing the following steps:
- Open a new command prompt/terminal.
- Pull the default
hostapd.conffile from the device by running the following command:To pull a file to the current file path, enter the<destination_file_path>as.in the command. For example, the IP address of the device is192.168.1.22, to pullhostapd.conffrom/etc, run the following command: - Update the
hostapd.conffile with the required SSID, password, and relevant hostapd configurations. Note Updatehw_modeaccurately while modifying the Wi-Fi channel. For more information about hostapd configuration, see https://w1.fi/cgit/hostap/plain/hostapd/README. - Push the file to the device by running the following command:
- To verify that the configuration parameters are updated, run the following command in the device for the
hostapd.conffile:
- Set a MAC address for
wlan1on the Qualcomm Dragonwing RB3 Gen 2 Development Kit that has a WCN6750 Wi-Fi chipset. The following example can be used as a reference while setting up a MAC address. - To set up the SoftAP, run the following command in the
ssh shell:The following output indicates that the AP is set up: - To start the Dynamic Host Configuration Protocol (DHCP) server on the Wi-Fi hotspot interface, run the following commands:
- To establish a connection with the
hostapd_cli, run the following command in SSH:Monitor thehostapd_cliconsole for the Wi-Fi STA connection notifications such asAP-STA-CONNECTED,EAPOL-4WAY-HS-COMPLETED. Sample output - To verify the connection status, connect to SoftAP from other devices.
For example, connect to SoftAP from a mobile device by performing the following steps:
- On the mobile device, go to the Wi-Fi settings.
- Wait for the Wi-Fi STA to detect SoftAP (with the SSID QSoftAP).
- Select SoftAP and enter the corresponding
wpa_passphrasethat was configured for SoftAP on the RB3 Gen 2 device, then connect. Sample output - To verify the connection, ping the IP address of the mobile from the RB3 Gen 2 device in the
ssh shell. The following output indicates that the Wi-Fi connection has been established successfully and the data transfer has begun:Alternatively, you can verify the Wi-Fi connection status in the Settings of the connected device. For example, to get the IP address of a mobile device connected to the RB3 Gen 2 SoftAP, perform the following steps:- Go to Settings > Wi-Fi.
- Verify the SSID of the AP.
Stop a Wi-Fi hotspot
Note Ensure that the Wi-Fi hotspot has been set up. To stop the hotspot, do the following in SSH:- Stop the hostapd by performing the following steps:
- To stop the hostapd process, run the following command:
- To disable the interface, run the following command:
- To stop the hostapd process, run the following command:
- To delete
ctrl_interface, run the following command:The Wi-Fi hotspot stops successfully.

