Wi-Fi link status
Note This section contains Linux BSP documentation for kernel v4.1. Click here for v4.9 BSP documentation.
You can use different tools to get information about the status of the Wi-Fi interfaces:
nmcli
To get the status of all devices managed by NetworkManager, use the nmcli tool:
~# nmcli dev status DEVICE TYPE STATE CONNECTION eth1 ethernet connected eth1 wlan0 wifi connected wlan0 eth0 ethernet unavailable -- can0 can unmanaged -- lo loopback unmanaged -- sit0 sit unmanaged -- wlan1 wifi unmanaged --
iw
To get the status with the iw tool:
~# iw dev wlan0 link Connected to 84:b5:17:40:a7:c0 (on wlan0) SSID: Cisco_2600_WPA2_AES freq: 5180 RX: 14188 bytes (110 packets) signal: -11 dBm tx bitrate: 72.2 MBit/s MCS 7 short GI
wpa_cli
To get the status with the wpa_cli tool:
~# wpa_cli -iwlan0 status bssid=84:b5:17:40:a7:c0 freq=5180 ssid=Cisco_2600_WPA2_AES id=0 mode=station pairwise_cipher=CCMP group_cipher=CCMP key_mgmt=WPA2-PSK wpa_state=COMPLETED ip_address=192.168.43.30 p2p_device_address=00:40:9d:98:a6:84 address=00:40:9d:98:a6:84 uuid=883ffae7-742b-59c4-9422-ab29a4b2ab6a
PDF
