环境:Ubuntu 22.04,安装在 apu2 (pcengines) HW 上,带有 2 个 miniPCI express – WLAN 卡 其中一个 WLAN 接口应该是 AP,另一个是 WLAN 客户端,连接到不同的 AP。我正在尝试从 wpasupplicant 和 hostapd 切换到 iwd。一般来说,这个解决方案确实有效,但它在重启后无法继续使用。我需要输入以下说明才能再次启用 AP
iwctl device wlan0 set-property Mode ap
iwctl ap wlan0 start-profile <profilename>
配置文件存储在/var/lib/iwd/ap
客户端 wlan 启动后工作。
数据:
lshw -C network
*-network
description: Wireless interface
product: QCA986x/988x 802.11ac Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:01:00.0
logical name: wlan0
version: 00
serial: 04:f0:21:XX:XX:XX
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath10k_pci driverversion=5.15.0-50-generic firmware=10.2.4-1.0-00047 ip=x.x.x.x latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:59 memory:d0000000-d01fffff memory:d0200000-d020ffff
*-network
description: Wireless interface
product: QCA986x/988x 802.11ac Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:05:00.0
logical name: wlan1
version: 00
serial: 04:f0:21:xx:xx:xy
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath10k_pci driverversion=5.15.0-50-generic firmware=10.2.4-1.0-00047 ip=x.x..x latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:61 memory:d0400000-d05fffff memory:d0600000-d060ffff
… and some eth interfaces ….
iwctl device list (after boot)
Devices
--------------------------------------------------------------------------------
Name Address Powered Adapter Mode
--------------------------------------------------------------------------------
wlan0 04:f0:21:xx:xx:xx on phy0 station
wlan1 04:f0:21:xx:xx:xy on phy1 station
预期的
iwctl device list
Devices
--------------------------------------------------------------------------------
Name Address Powered Adapter Mode
--------------------------------------------------------------------------------
wlan0 04:f0:21:xx:xx:xx on phy0 ap
wlan1 04:f0:21:xx:xx:xy on phy1 station
主配置文件
more main.conf | grep -v ^#
[General]
EnableNetworkConfiguration=false
[Network]
EnableIPv6=false
我需要配置什么才能使 iwd 从一站一 ap 开始?