mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
client: fix extra newlines in station show
This change removes duplicate calls to display_table_footer(), in station show. Before this change, the bug caused an extra newline to be output every time the table updated. This only occurred when the network was disconnected. $ iwctl [iwd]# station wlan0 show
This commit is contained in:
parent
069d6d1d9c
commit
c63783ee89
@ -217,15 +217,9 @@ static void display_station(const char *device_name,
|
|||||||
47, network_get_name(station->connected_network));
|
47, network_get_name(station->connected_network));
|
||||||
|
|
||||||
display_addresses(device_name);
|
display_addresses(device_name);
|
||||||
|
|
||||||
/*
|
|
||||||
* If connected the diagnostic interface is presumably up so
|
|
||||||
* don't add the table footer just yet.
|
|
||||||
*/
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
display_table_footer();
|
/* The table footer is handled by cmd_show. */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void display_station_inline(const char *margin, const void *data)
|
static void display_station_inline(const char *margin, const void *data)
|
||||||
|
Loading…
Reference in New Issue
Block a user