Skip to content

Commit

Permalink
iwlwifi: Fix an invalid bitmask test in iwl3945 and iwl4965
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maarten Lankhorst authored and David S. Miller committed Feb 1, 2008
1 parent 4fcc547 commit d986bcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl3945-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl4965-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d986bcd

Please sign in to comment.