From a072745bc9c297c8d5c7150e0954b2b1b82366c4 Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Tue, 27 Oct 2015 20:15:47 +0100 Subject: mwlwifi: more debug log on amsdu operation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- tx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tx.c b/tx.c index 788e826..a1fab03 100644 --- a/tx.c +++ b/tx.c @@ -617,7 +617,7 @@ static inline struct sk_buff *mwl_tx_do_amsdu(struct mwl_priv *priv, spin_unlock_bh(&sta_info->amsdu_lock); - wiphy_warn(priv->hw->wiphy,"%s: amsdu->num=%u, tx_skb->len=%zu, amsdu->skb->len=%zu", __func__, amsdu->num, tx_skb->len, amsdu->skb->len ); + dev_dbg(&priv->hw->wiphy->dev, "%pM amsdu->num=%u, tx_skb->len=%zu, amsdu->skb->len=%zu", sta->addr, amsdu->num, tx_skb->len, amsdu->skb->len); return NULL; } @@ -1173,6 +1173,9 @@ void mwl_tx_flush_amsdu(unsigned long data) spin_lock(&priv->sta_lock); list_for_each_entry(sta_info, &priv->sta_list, list) { + struct ieee80211_sta *sta = container_of((char *)sta_info, struct ieee80211_sta, drv_priv[0]); + dev_dbg(&hw->wiphy->dev, "%pM", sta->addr); + spin_lock(&priv->tx_desc_lock); spin_lock(&sta_info->amsdu_lock); for (i = 0; i < SYSADPT_TX_WMM_QUEUES; i++) { @@ -1200,6 +1203,7 @@ void mwl_tx_flush_amsdu(unsigned long data) priv->iobase1 + MACREG_REG_A2H_INTERRUPT_STATUS_MASK); priv->is_qe_schedule = false; + } void mwl_tx_del_sta_amsdu_pkts(struct ieee80211_sta *sta) -- cgit v1.2.3