From a7588227edf16f3297c97d290fc49a322c694db3 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 23 Aug 2013 17:10:29 +0200 Subject: [PATCH] cli: bugfix verification for wifi channel in edit mode This bug caused the edit mode to refuse most of the valid wifi channels. The bug was present since the beginning, so all versions before this commit will have this issue. https://bugzilla.redhat.com/show_bug.cgi?id=999999 Signed-off-by: Thomas Haller --- cli/src/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/settings.c b/cli/src/settings.c index 759479276..cd08dc9c6 100644 --- a/cli/src/settings.c +++ b/cli/src/settings.c @@ -3230,7 +3230,7 @@ nmc_property_wifi_set_channel (NMSetting *setting, const char *prop, const char } if ( !nm_utils_wifi_is_channel_valid (chan_int, "a") - || !nm_utils_wifi_is_channel_valid (chan_int, "bg")) { + && !nm_utils_wifi_is_channel_valid (chan_int, "bg")) { g_set_error (error, 1, 0, _("'%ld' is not a valid channel"), chan_int); return FALSE; }