wifi: fix B/G band adhoc wifi auto channel selection
authorSimon Schampijer <simon@schampijer.de>
Fri, 23 Apr 2010 00:14:33 +0000 (17:14 -0700)
committerDan Williams <dcbw@redhat.com>
Fri, 23 Apr 2010 00:14:33 +0000 (17:14 -0700)
src/nm-wifi-ap.c

index 80b69a3..c7b5d8a 100644 (file)
@@ -1469,7 +1469,7 @@ channel_to_freq (guint32 channel, const char *band)
        } else if (!strcmp (band, "bg")) {
                while (bg_table[i].chan && (bg_table[i].chan != channel))
                        i++;
-               return a_table[i].freq;
+               return bg_table[i].freq;
        }
 
        return 0;