mwl8k: fix inverted error test in mwl8k_bss_info_changed()
authorLennert Buytenhek <buytenh@wantstofly.org>
Mon, 24 Aug 2009 13:42:36 +0000 (15:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:42 +0000 (14:40 -0400)
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c

index 41a708c..4d3353c 100644 (file)
@@ -2617,7 +2617,7 @@ static void mwl8k_bss_info_changed(struct ieee80211_hw *hw,
        priv->capture_beacon = false;
 
        rc = mwl8k_fw_lock(hw);
-       if (!rc)
+       if (rc)
                return;
 
        if (info->assoc) {