summaryrefslogtreecommitdiff
path: root/test/nm-tool.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2013-02-03 14:49:22 +0100
committerMichael Biebl <biebl@debian.org>2013-02-03 14:49:22 +0100
commit9c202e3e860b3be9e1f8882630b69affbb130102 (patch)
tree8202bf39f2129486971fa7d5ae0dee61a561aa53 /test/nm-tool.c
parent36cb2f364a821e1be50b23e03a18891ec55adb06 (diff)
Imported Upstream version 0.9.7.995upstream/0.9.7.995
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,