another small bugfix for wificonf
authorFelix Fietkau <nbd@openwrt.org>
Sun, 13 Nov 2005 22:52:48 +0000 (22:52 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 13 Nov 2005 22:52:48 +0000 (22:52 +0000)
SVN-Revision: 2475

openwrt/package/wificonf/wificonf.c

index 1ca1e5eb58e68e4a5a49711d83cb5997e0ad8f75..74c8f68d398cdb9c926c22aed934d318200b079b 100644 (file)
@@ -412,7 +412,7 @@ static void setup_bcom(int skfd, char *ifname)
                                
                                bcom_ioctl(skfd, ifname, WLC_SET_WPA_AUTH, &val, sizeof(val));
                                
-                               if (!nvram_match(wl_var("mode"), "wet")) {
+                               if (nvram_match(wl_var("mode"), "wet")) {
                                        /* Enable in-driver WPA supplicant */
                                        wsec_pmk_t pmk;