3.5.3
Disconnect from Wi-Fi Access Point
To disconnect from a Wi-Fi network, enter the following command:
$ sudo nmcli con down id 'SSID'
SSID is the name of the network you want to disconnect from
The system will return the following if successful:
3.5.4
Check Wi-Fi Connection Status
To check the status of a Wi-Fi connection, enter the following command:
$ nmcli dev
If connected, the system will return a "connected" status for wlan0:
If disconnected, the system will return "disconnected" status for wlan0
Chapter 3 – Gateway Setup and Configuration
23