]> err.no Git - linux-2.6/commitdiff
iwlwifi: Fix an invalid bitmask test in iwl3945 and iwl4965
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Wed, 23 Jan 2008 18:15:16 +0000 (10:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:26:39 +0000 (19:26 -0800)
Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl4965-base.c

index 748ac1222abb908d2c18a79c35a389a393bab250..0bfb925ebda897dfb39706a69f8ca49abec28b48 100644 (file)
@@ -7120,7 +7120,7 @@ static void iwl3945_config_ap(struct iwl3945_priv *priv)
 {
        int rc = 0;
 
-       if (priv->status & STATUS_EXIT_PENDING)
+       if (test_bit(STATUS_EXIT_PENDING, &priv->status))
                return;
 
        /* The following should be done only at AP bring up */
index c86da5cd1df19466fe230393a98e74e3475ede16..f9f387fff55c736aeca0853cd9a4f9ec655e7f1c 100644 (file)
@@ -7580,7 +7580,7 @@ static void iwl4965_config_ap(struct iwl4965_priv *priv)
 {
        int rc = 0;
 
-       if (priv->status & STATUS_EXIT_PENDING)
+       if (test_bit(STATUS_EXIT_PENDING, &priv->status))
                return;
 
        /* The following should be done only at AP bring up */