From: Emmanuel Grumbach Date: Mon, 10 Oct 2011 14:27:03 +0000 (-0700) Subject: iwlagn: warn only once if AGG state is wrong X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9e8107ed9058e910eee982ee94d3a5eb201fb5d1;p=linux-beck.git iwlagn: warn only once if AGG state is wrong This one can be _very_ noisy. Signed-off-by: Emmanuel Grumbach Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c b/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c index f69aecb554e9..2abd07ff96c2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c @@ -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 */ 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; }