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 yesnmcli 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?
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?