From 97677fdde6c7aeb499b05b89897a182c40d174ed Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Thu, 29 Oct 2015 12:14:13 +0100 Subject: mwlwifi: add some A-MSDU related debug logging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is useful for verifying the ADDBA A-MSDU capability fix. Using dynamic debugging allows this to be enabled only when required. Signed-off-by: Bjørn Mork --- rx.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rx.c b/rx.c index 3ed9d59..a7cf332 100644 --- a/rx.c +++ b/rx.c @@ -294,6 +294,7 @@ static inline void mwl_rx_enable_sta_amsdu(struct mwl_priv *priv, drv_priv[0]); if (ether_addr_equal(sta->addr, sta_addr)) { sta_info->is_amsdu_allowed = true; + wiphy_dbg(priv->hw->wiphy, "enabling A-MSDU for %pM\n", sta_addr); break; } } @@ -578,7 +579,7 @@ void mwl_rx_recv(unsigned long data) if (ieee80211_is_mgmt(wh->frame_control)) { struct ieee80211_mgmt *mgmt; - __le16 capab; + u16 capab; mgmt = (struct ieee80211_mgmt *)prx_skb->data; @@ -587,8 +588,10 @@ void mwl_rx_recv(unsigned long data) WLAN_CATEGORY_BACK && mgmt->u.action.u.addba_resp.action_code == WLAN_ACTION_ADDBA_RESP)) { - capab = mgmt->u.action.u.addba_resp.capab; - if (le16_to_cpu(capab) & 1) + capab = le16_to_cpu(mgmt->u.action.u.addba_resp.capab); + wiphy_dbg(hw->wiphy, "%pM - addba_resp.capab=0x%hx\n", + mgmt->sa, capab); + if (capab & 1) mwl_rx_enable_sta_amsdu(priv, mgmt->sa); } } -- cgit v1.2.3