nmcli/dev: include device name in "nmcli d wifi list"

In case there's multiple Wi-Fi adapters, we print them all without any
indication about which APs come from which adapter. That's not too
great.
This commit is contained in:
Lubomir Rintel 2024-06-05 18:15:25 +02:00
parent f55b918700
commit 796fc24b1f
2 changed files with 375 additions and 314 deletions

View file

@ -746,8 +746,9 @@ const NmcMetaGenericInfo *const nmc_fields_dev_wifi_list[] = {
NMC_META_GENERIC("DBUS-PATH"), /* 17 */
NULL,
};
#define NMC_FIELDS_DEV_WIFI_LIST_COMMON "IN-USE,BSSID,SSID,MODE,CHAN,RATE,SIGNAL,BARS,SECURITY"
#define NMC_FIELDS_DEV_WIFI_LIST_FOR_DEV_LIST "NAME," NMC_FIELDS_DEV_WIFI_LIST_COMMON
#define NMC_FIELDS_DEV_WIFI_LIST "IN-USE,BSSID,SSID,MODE,CHAN,RATE,SIGNAL,BARS,SECURITY"
#define NMC_FIELDS_DEV_WIFI_LIST_COMMON NMC_FIELDS_DEV_WIFI_LIST ",DEVICE"
#define NMC_FIELDS_DEV_WIFI_LIST_FOR_DEV_LIST "NAME," NMC_FIELDS_DEV_WIFI_LIST
const NmcMetaGenericInfo *const nmc_fields_dev_wimax_list[] = {
NMC_META_GENERIC("NAME"), /* 0 */

File diff suppressed because it is too large Load diff