summaryrefslogtreecommitdiff
path: root/test/nm-tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/nm-tool.c')
-rw-r--r--test/nm-tool.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/nm-tool.c b/test/nm-tool.c
index d8c75cee6..47bf2e2f7 100644
--- a/test/nm-tool.c
+++ b/test/nm-tool.c
@@ -161,7 +161,9 @@ detail_access_point (gpointer data, gpointer user_data)
str = g_string_new (NULL);
g_string_append_printf (str,
"%s, %s, Freq %d MHz, Rate %d Mb/s, Strength %d",
- (nm_access_point_get_mode (ap) == NM_802_11_MODE_INFRA) ? "Infra" : "Ad-Hoc",
+ nm_access_point_get_mode (ap) == NM_802_11_MODE_ADHOC ? "Ad-Hoc"
+ : nm_access_point_get_mode (ap) == NM_802_11_MODE_INFRA ? "Infra"
+ : "Unknown",
nm_access_point_get_hw_address (ap),
nm_access_point_get_frequency (ap),
nm_access_point_get_max_bitrate (ap) / 1000,