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

# 设置 Wi-Fi

## **前提条件**

在开始之前，请参阅 [Qualcomm Linux 构建指南](https://docs.qualcomm.com/bundle/publicresource/topics/80-80021-254/introduction.html)了解通用基础环境搭建和构建工作流程。

本内容介绍启用 WLAN 功能的前提条件，例如建立安全 Shell（SSH）连接以及验证和存储媒体访问控制（MAC）地址。以下工作流程展示了如何开始 Wi-Fi 启动流程，并根据你的需求配置 Wi-Fi。

<div className="flex flex-col items-center gap-2">
  <img src="https://mintcdn.com/qualcomm-prod/RietNfmN9gs2vaJw/Technologies/Wi-Fi/media/qli-wi-fi/get_started_wifi.png?fit=max&auto=format&n=RietNfmN9gs2vaJw&q=85&s=2efc77456c9e529f5062b6491f024bc1" width="1863" height="453" data-path="Technologies/Wi-Fi/media/qli-wi-fi/get_started_wifi.png" />
</div>

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

要设置调试通用异步收发器（UART）和 Wi-Fi，以及连接 SSH，请参阅[使用 SSH 登录](https://docs.qualcomm.com/bundle/publicresource/topics/80-80021-254/how_to.html#use-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 地址。

**注意：**\
由于默认启用了可预测网络接口名称（Predictable Network Interface Names）：

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