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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user