[PATCH] fix valid channels for 802.11a in libnm-util's validation
- From: Jirka Klimes <jklimes redhat com>
- To: networkmanager-list gnome org
- Subject: [PATCH] fix valid channels for 802.11a in libnm-util's validation
- Date: Thu, 6 May 2010 10:53:35 +0200
Add some missing channels.
Jirka
diff --git a/libnm-util/Makefile.am b/libnm-util/Makefile.am
index ddc6840..5fdee0b 100644
--- a/libnm-util/Makefile.am
+++ b/libnm-util/Makefile.am
@@ -59,7 +59,7 @@ libnm_util_la_SOURCES= \
libnm_util_la_LIBADD = $(GLIB_LIBS) $(DBUS_LIBS) $(UUID_LIBS)
libnm_util_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libnm-util.ver \
- -version-info "4:4:3"
+ -version-info "4:5:3"
if WITH_GNUTLS
libnm_util_la_SOURCES += crypto_gnutls.c
diff --git a/libnm-util/nm-setting-wireless.c b/libnm-util/nm-setting-wireless.c
index 9213429..9dc93c3 100644
--- a/libnm-util/nm-setting-wireless.c
+++ b/libnm-util/nm-setting-wireless.c
@@ -19,7 +19,7 @@
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
- * (C) Copyright 2007 - 2008 Red Hat, Inc.
+ * (C) Copyright 2007 - 2010 Red Hat, Inc.
* (C) Copyright 2007 - 2008 Novell, Inc.
*/
@@ -482,11 +482,11 @@ verify (NMSetting *setting, GSList *all_settings, GError **error)
if (priv->channel) {
if (!strcmp (priv->band, "a")) {
int i;
- int valid_channels[] = { 7, 8, 9, 11, 12, 16, 34, 36, 40, 44, 48,
- 52, 56, 60, 64, 100, 104, 108, 112, 116,
- 120, 124, 128, 132, 136, 140, 149, 153,
- 157, 161, 165, 183, 184, 185, 187, 188,
- 192, 196, 0 };
+ int valid_channels[] = { 7, 8, 9, 11, 12, 16, 34, 36, 38, 40,
+ 42, 44, 46, 48, 50, 52, 56, 58, 60, 64,
+ 100, 104, 108, 112, 116, 120, 124, 128, 132, 136,
+ 140, 149, 152, 153, 157, 160, 161, 165, 183, 184,
+ 185, 187, 188, 192, 196, 0 };
for (i = 0; valid_channels[i]; i++) {
if (priv->channel == valid_channels[i])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]