> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to connect to wifi

## Connect to the network

### Set up Wi-Fi

Wi-Fi is operational in Station mode. The Wi-Fi host driver and the
authentication for network management are initialized during the device boot up.

* Connect to the wireless access point (Wi-Fi router):
  ```bash theme={null}
  nmcli dev wifi connect <SSID> password <password>
  ```

* Check the connection and device status:
  ```bash theme={null}
  nmcli -p device
  ```
  <img src="https://mintcdn.com/qualcomm-prod/yUQ5Z3Vx_Ib3ymoN/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/status_of_devices.png?fit=max&auto=format&n=yUQ5Z3Vx_Ib3ymoN&q=85&s=fb113c2f06f8a2c2d695e95a2b1a013c" alt="status_of_devices" width="975" height="222" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/status_of_devices.png" />

* Check the WLAN connection status and IP address:
  ```bash theme={null}
  ip address show wlp1s0
  ```
  <img src="https://mintcdn.com/qualcomm-prod/yUQ5Z3Vx_Ib3ymoN/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/chk_ip.png?fit=max&auto=format&n=yUQ5Z3Vx_Ib3ymoN&q=85&s=6049fc46f22e41b0b46913a0ffab69a8" alt="chk_ip" width="967" height="148" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/chk_ip.png" />

4. Ping any website to confirm if the connection is active:
   ```bash theme={null}
   ping google.com
   ```

### Switching networks

If you are already connected to a network and need to reconnect to another network, do the following:

* Disconnect from the current network:
  ```text theme={null}
  nmcli c down <SSID>
  ```

* Check the disconnect status:
  ```text theme={null}
  nmcli -p device
  ```
  <img src="https://mintcdn.com/qualcomm-prod/yUQ5Z3Vx_Ib3ymoN/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/status_of_devices_switch_network.png?fit=max&auto=format&n=yUQ5Z3Vx_Ib3ymoN&q=85&s=8d4a16a02f83a415d07d1c23290411b0" alt="status_of_devices_switch_network" width="973" height="229" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/status_of_devices_switch_network.png" />

* Connect to a different Wi-Fi network:
  ```bash theme={null}
  nmcli dev wifi connect QualcommAP password XXXXXXXXX
  ```

* Check the connection status:
  ```bash theme={null}
  nmcli -p device
  ```
