aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDon Fry <donald.h.fry@intel.com>2012-03-07 12:52:43 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-03-08 14:02:29 -0500
commit1353a7ba7ebe62dedc60a5ba75c434cfad960ede (patch)
tree7ce5d4c7e7095f951f3d708da8755762ac3ac253 /drivers
parent974205153be8944539890084a170e3ad407164bc (diff)
iwlwifi: correct status bit refactoring errors
I missed a couple of status bits in my refactoring changes. This fixes the ones I missed. Signed-off-by: Don Fry <donald.h.fry@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rx.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rx.c b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c
index 3ad43330f6a..cc0227c1f35 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c
@@ -628,7 +628,7 @@ static int iwlagn_rx_card_state_notif(struct iwl_priv *priv,
628 struct iwl_rx_packet *pkt = rxb_addr(rxb); 628 struct iwl_rx_packet *pkt = rxb_addr(rxb);
629 struct iwl_card_state_notif *card_state_notif = (void *)pkt->data; 629 struct iwl_card_state_notif *card_state_notif = (void *)pkt->data;
630 u32 flags = le32_to_cpu(card_state_notif->flags); 630 u32 flags = le32_to_cpu(card_state_notif->flags);
631 unsigned long status = priv->shrd->status; 631 unsigned long status = priv->status;
632 632
633 IWL_DEBUG_RF_KILL(priv, "Card state received: HW:%s SW:%s CT:%s\n", 633 IWL_DEBUG_RF_KILL(priv, "Card state received: HW:%s SW:%s CT:%s\n",
634 (flags & HW_CARD_DISABLED) ? "Kill" : "On", 634 (flags & HW_CARD_DISABLED) ? "Kill" : "On",
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 8c21db81ba5..60f1dc640c9 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -819,15 +819,15 @@ void iwl_down(struct iwl_priv *priv)
819 iwl_trans_stop_device(trans(priv)); 819 iwl_trans_stop_device(trans(priv));
820 820
821 /* Clear out all status bits but a few that are stable across reset */ 821 /* Clear out all status bits but a few that are stable across reset */
822 priv->shrd->status &= 822 priv->status &= test_bit(STATUS_RF_KILL_HW, &priv->status) <<
823 test_bit(STATUS_RF_KILL_HW, &priv->status) <<
824 STATUS_RF_KILL_HW | 823 STATUS_RF_KILL_HW |
825 test_bit(STATUS_GEO_CONFIGURED, &priv->status) << 824 test_bit(STATUS_GEO_CONFIGURED, &priv->status) <<
826 STATUS_GEO_CONFIGURED | 825 STATUS_GEO_CONFIGURED |
827 test_bit(STATUS_FW_ERROR, &priv->shrd->status) <<
828 STATUS_FW_ERROR |
829 test_bit(STATUS_EXIT_PENDING, &priv->status) << 826 test_bit(STATUS_EXIT_PENDING, &priv->status) <<
830 STATUS_EXIT_PENDING; 827 STATUS_EXIT_PENDING;
828 priv->shrd->status &=
829 test_bit(STATUS_FW_ERROR, &priv->shrd->status) <<
830 STATUS_FW_ERROR;
831 831
832 dev_kfree_skb(priv->beacon_skb); 832 dev_kfree_skb(priv->beacon_skb);
833 priv->beacon_skb = NULL; 833 priv->beacon_skb = NULL;