iwlagn: warn only once if AGG state is wrong
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 10 Oct 2011 14:27:03 +0000 (07:27 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Oct 2011 18:48:11 +0000 (14:48 -0400)
This one can be _very_ noisy.

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-trans-pcie.c

index f69aecb..2abd07f 100644 (file)
@@ -1098,7 +1098,7 @@ static int iwl_trans_pcie_tx(struct iwl_trans *trans, struct sk_buff *skb,
                seq_number += 0x10;
                /* aggregation is on for this <sta,tid> */
                if (info->flags & IEEE80211_TX_CTL_AMPDU) {
-                       WARN_ON(tid_data->agg.state != IWL_AGG_ON);
+                       WARN_ON_ONCE(tid_data->agg.state != IWL_AGG_ON);
                        txq_id = tid_data->agg.txq_id;
                        is_agg = true;
                }