currently, I am working on a project, where jetson nano should connect to an existing wifi network. If this network is not available, then jetson nano will create its own wireless network with predefined SSID and password. Is there any way to do it using bash script or python? I would like to use Waveshare AC8265 module. I am afraid, that in a container there will be no way to control wireless interface.
In addition to talking with NetworkManager (through D-Bus or better through a library on top of it like python-networkmanager), you will need to spawn an instance of dnsmasq, so that IP configuration could be assigned to devices connected to your network. Both WiFi Connect projects do that as well.
Please note that it will take you some time to implement all of this, but you can definitely achieve what you are looking for. Also in case you have any questions you can always ping us here.