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

# 设置 Wi-Fi

## **前提条件**

在开始之前，请参阅 [Qualcomm Linux 构建指南](https://dragonwingdocs.qualcomm.com/Key-Documents/Yocto-Guide/build-qualcomm-linux#build-qualcomm-linux-using-yocto) 以了解常见基础设施设置和构建工作流。

此信息介绍了启用 WLAN 功能的前提条件，例如设置安全套接字外壳 (SSH) 连接以及验证和存储媒体访问控制 (MAC) 地址。以下工作流显示了如何开始 Wi-Fi 启用过程，然后根据您的要求配置 Wi-Fi。

<div className="flex flex-col items-center gap-2">
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/qualcomm-staging/zh/Technologies/Wi-Fi/media/qli-wi-fi/get_started_wifi.png" />
</div>

### **设置 UART/SSH**

要设置调试通用异步收发器 (UART) 和 Wi-Fi，并连接到 SSH，请参阅 [使用 SSH 登录](https://dragonwingdocs.qualcomm.com/Key-Documents/Flash-Guide/how-to-sign-in-with-ssh)。

**注意**

使用安全复制协议 (SCP) 与设备之间传输文件时，会出现密码提示。在密码字段中输入 `oelinux123`。

### **设置 WLAN MAC 地址**

**注意：**\
这是可选步骤。如果您想拥有自己的 MAC 地址而不是默认 MAC 地址，请执行以下步骤：

* 默认情况下，工厂将 WLAN MAC 地址写入网卡的一次性可编程 (OTP) 内存中。
  如果需要，您可以使用以下命令修改 MAC 地址。在这些命令中，将 `wlpXsY` 替换为接口索引名称 0 或 1。例如，`wlp1s0` 或 `wlp1s1`。
  ```text theme={null}
  ip link set wlpXsY down
  ip link set wlpXsY address xx:xx:xx:xx:xx:xx
  ip link set wlpXsY up
  ```
* 您设置的 MAC 地址在重启或下次电源循环之前一直有效，并且优先于存储在 OTP 内存中的工厂设置 MAC 地址。

**注意：**\
由于预测网络接口名称默认启用：

* 对于非 PCIe 接口，WLAN 接口名称为 `wlanX` (RB3GEN2, Shikra)。
* 对于 PCIe 接口，`wlanX` 被重命名为 `wlpXsY`，其中：
  * `X` = PCIe 端口索引 + 1
  * `Y` = 设备索引
