Cannot use "nmcli connect" after using create_ap
FSet89 opened this issue · 2 comments
Consider the following scenario: a SBC running Ubuntu 16.04 generates an AP with the command
create_ap -n wlan0 mynetwork mypassword
A device connected to the AP sends some WIFI credentials to the SBC. At the next reboot, the SBC connects to the WIFI network instead of generating an AP.
I tried to implement this pipeline. Since the create_ap script sets the interface as unmanaged for NetworkManager, I tried to run:
nmcli dev set wlan0 managed yes
nmcli dev wifi connect "mynetwork" password "mypassword"
But this is not working. Is there some other setting that is changed by create_ap
that I have to take into account?
hello ,I also encountered this problem. How did you solve it? thank you
I have solved it
/etc/NetworkManager/NetworkManager.conf last line
Comment out it