]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iwlwifi: log stop / wake queues
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 7 Mar 2012 17:52:34 +0000 (09:52 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 8 Mar 2012 18:59:54 +0000 (13:59 -0500)
There were a few missing occurences when we get PASSIVE_NO_RX
notification.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-tx.c
drivers/net/wireless/iwlwifi/iwl-agn.c

index 97ebfd26212e5ba593b05a167c3ef4698b36efd6..ac5c1311ef3330809ffc9aece8e5db5a061fcc67 100644 (file)
@@ -1088,6 +1088,8 @@ int iwlagn_rx_reply_tx(struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb,
                            ctx->vif->type == NL80211_IFTYPE_STATION) {
                                /* block and stop all queues */
                                priv->passive_no_rx = true;
+                               IWL_DEBUG_TX_QUEUES(priv, "stop all queues: "
+                                                   "passive channel");
                                ieee80211_stop_queues(priv->hw);
 
                                IWL_DEBUG_TX_REPLY(priv,
index 7927e3e11097a5444615f7fa89691c84421e18a9..6ed2f782177be26b4d21f432e0ad5e816c46fd8b 100644 (file)
@@ -1450,8 +1450,12 @@ void iwlagn_lift_passive_no_rx(struct iwl_priv *priv)
                return;
 
        for (ac = IEEE80211_AC_VO; ac < IEEE80211_NUM_ACS; ac++) {
-               if (!test_bit(ac, &priv->transport_queue_stop))
+               if (!test_bit(ac, &priv->transport_queue_stop)) {
+                       IWL_DEBUG_TX_QUEUES(priv, "Wake queue %d");
                        ieee80211_wake_queue(priv->hw, ac);
+               } else {
+                       IWL_DEBUG_TX_QUEUES(priv, "Don't wake queue %d");
+               }
        }
 
        priv->passive_no_rx = false;