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 <thaller@redhat.com>
This commit is contained in:
Thomas Haller
2013-08-23 17:10:29 +02:00
parent b5b43a6d65
commit a7588227ed

View File

@@ -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") 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); g_set_error (error, 1, 0, _("'%ld' is not a valid channel"), chan_int);
return FALSE; return FALSE;
} }