> ## 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

## 连接到网络

### 设置 Wi-Fi

Wi-Fi 以 Station 模式运行。Wi-Fi 主机驱动和用于网络管理的身份验证会在设备启动期间初始化。

* 连接到无线接入点（Wi-Fi 路由器）：
  ```bash theme={null}
  nmcli dev wifi connect <SSID> password <password>
  ```

* 检查连接和设备状态：
  ```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" />

* 检查 WLAN 连接状态和 IP 地址：
  ```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 任意网站以确认连接是否处于活动状态：
   ```bash theme={null}
   ping google.com
   ```

### 切换网络

如果您已连接到某个网络并需要重新连接到另一个网络，请执行以下操作：

* 断开当前网络：
  ```text theme={null}
  nmcli c down <SSID>
  ```

* 检查断开状态：
  ```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" />

* 连接到其他 Wi-Fi 网络：
  ```bash theme={null}
  nmcli dev wifi connect QualcommAP password XXXXXXXXX
  ```

* 检查连接状态：
  ```bash theme={null}
  nmcli -p device
  ```
