mac80211: log reason and initiator when rx agg is stopped
authorNikolay Martynov <mar.kolya@gmail.com>
Wed, 23 Nov 2011 02:50:30 +0000 (21:50 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Nov 2011 19:43:51 +0000 (14:43 -0500)
  Add additional debug logging of initiator and reason when rx
aggregation session is stopped

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/agg-rx.c

index d4f23d4dc2c913eb764a890aa66b5c1669b55c17..98208b6d9d7a6e27dc30e104d5ab210417917f5b 100644 (file)
@@ -73,8 +73,11 @@ void ___ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid,
        RCU_INIT_POINTER(sta->ampdu_mlme.tid_rx[tid], NULL);
 
 #ifdef CONFIG_MAC80211_HT_DEBUG
-       printk(KERN_DEBUG "Rx BA session stop requested for %pM tid %u\n",
-              sta->sta.addr, tid);
+       printk(KERN_DEBUG
+              "Rx BA session stop requested for %pM tid %u %s reason: %d\n",
+              sta->sta.addr, tid,
+              initiator == WLAN_BACK_RECIPIENT ? "recipient" : "inititator",
+              (int)reason);
 #endif /* CONFIG_MAC80211_HT_DEBUG */
 
        if (drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_STOP,