Jelajahi Sumber

wifi-scripts: ucode: iwinfo: show ESSID in scan

This adds the ESSID: line to the iwinfo scan results.

Signed-off-by: Eneas U de Queiroz <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20686
Signed-off-by: Robert Marko <[email protected]>
Eneas U de Queiroz 2 bulan lalu
induk
melakukan
e50703d033

+ 1 - 0
package/network/config/wifi-scripts/files-ucode/usr/bin/iwinfo

@@ -69,6 +69,7 @@ function print_scan(cells) {
 
 	for (let cell in cells) {
 		printf('Cell %02d - Address: %s\n', idx++, cell.bssid);
+		printf('\t  ESSID: %s\n', cell.ssid ? '"' + cell.ssid + '"' : 'unknown');
 		printf('\t  Mode: %s  Frequency: %s GHz  Band: %s GHz  Channel: %d\n', cell.mode, cell.frequency, cell.band, cell.channel);
 		printf('\t  Signal: %d dBm  Quality: %2d/70\n', cell.dbm, cell.quality);