I am trying to write a terminal command to list all available WiFi Access points along with their signal strength.
The search led me to the following command:
nmcli dev wifi list
The output of this command is something like this.
The problem now is: what is the unit of the column SIGNAL? And is their any relationship with the signal strength in dBm? If so, how can I convert it to signal strength in dBm? Or any other way to list the available WiFi APs along with their signal strength in dBm. My code requires me to print this output as a table where column 1 is the ssid and the second column is its signal strength.
Note: There is a problem with the solution iwlist wlp8s0 scan is that it takes me around 2.5 seconds to run whereas nmcli dev wifi list is much faster and I need this speed in my data collection