[PATCH] libertas: fix disabling WPA
authorDan Williams <dcbw@redhat.com>
Fri, 6 Jul 2007 11:59:40 +0000 (07:59 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Jul 2007 18:23:03 +0000 (14:23 -0400)
Found by Guillaume LECERF <glecerf@gmail.com>

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c

index 13f6528abb00d22370eff0626b1927bcedca79aa..4a8f5dc70239c48a0aebda7e23591b9a5d4bd578 100644 (file)
@@ -240,7 +240,7 @@ static int wlan_cmd_802_11_enable_rsn(wlan_private * priv,
                if (*enable)
                        penableRSN->enable = cpu_to_le16(cmd_enable_rsn);
                else
-                       penableRSN->enable = cpu_to_le16(cmd_enable_rsn);
+                       penableRSN->enable = cpu_to_le16(cmd_disable_rsn);
        }
 
        lbs_deb_leave(LBS_DEB_CMD);