1

I've been using straight wpa_supplicant configurations for a while but now would like to switch to NetworkManager. How can I get NetworkManager to use an existing wpa_supplicant.conf to generate the necessary configuration file in /etc/NetworkManager/system-connections/ ?

Only one network is configured on each device as either WPA1/2, no security or configured by WPS. So I could probably do some sort of brute force approach to generating the necessary NetworkManager configuration file.

4

1 回答 1

1

我已经在 c 代码中完成了这项工作。

SSID 和 PSK 存储在 conf 文件中。您可以解析它们的值,然后调用

nmcli dev wifi connect "SSID" password "PSK"
于 2016-04-21T15:23:49.077 回答