First, we need to install nmcli, enter the command to install successfully:
sudo apt-get install nmcli
Second, enter the command to see which network devices our hardware is:
sudo nmcli dev
Again, we need to turn on the wifi of the corresponding device:
sudo nmcli r wifi on
Then, we scan which wifis are available in the current environment:
sudo nmcli dev wifi
Finally, enter the command to connect to wifi:
sudo nmcli dev wifi connect 'wifi名' password '密码"
View connected
nmcli c
delete unused connections
nmcli c delete OpenWrt