在 Ubuntu 20.04 服务器上设置热点。无线网卡是高通Atheros AR928X。
使用 Netplan 进行设置并且 AP 可以工作。但我想禁用 WPS 并只保留 WPA-PSK 部分。
网络计划脚本是:
version: 2
renderer: NetworkManager
wifis:
wlp2s0:
dhcp4: true
optional: true
access-points:
"my-ap":
password: "mypassword"
mode: ap
尝试了多种方法,从wpa_supplicant中找到了一些线索。
根据wpa_supplicant日志:
...
systemd[1]: Starting WPA supplicant...
wpa_supplicant[634]: Successfully initialized wpa_supplicant
systemd[1]: Started WPA supplicant.
wpa_supplicant[634]: wlp2s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
wpa_supplicant[634]: rfkill: WLAN soft blocked
wpa_supplicant[634]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
wpa_supplicant[634]: wlp2s0: WPS-PBC-ACTIVE
wpa_supplicant[634]: wlp2s0: SME: Trying to authenticate with 5c:02:14:75:7d:33 (SSID='hoho' freq=5200 MHz)
wpa_supplicant[634]: wlp2s0: Trying to associate with 5c:02:14:75:7d:33 (SSID='hoho' freq=5200 MHz)
wpa_supplicant[634]: wlp2s0: Associated with 5c:02:14:75:7d:33
wpa_supplicant[634]: wlp2s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wpa_supplicant[634]: wlp2s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=CN
wpa_supplicant[634]: wlp2s0: WPA: Key negotiation completed with 5c:02:14:75:7d:33 [PTK=CCMP GTK=CCMP]
wpa_supplicant[634]: wlp2s0: CTRL-EVENT-CONNECTED - Connection to 5c:02:14:75:7d:33 completed [id=0 id_str=]
wpa_supplicant[634]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-63 noise=-95 txrate=13000
wpa_supplicant[634]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-57 noise=-95 txrate=121500
...
不确定wpa_supplicant从哪里得到“WPS-PBC-ACTIVE”参数,从无线适配器或者它自己的配置文件中读取(没有通过/etc/wpa_supplicantl.conf文件)。
如何找到该参数并禁用它?