From: Nikolay Martynov Date: Wed, 23 Nov 2011 02:50:30 +0000 (-0500) Subject: mac80211: log reason and initiator when rx agg is stopped X-Git-Tag: firefly_0821_release~3680^2~3834^2~44^2~312 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5ccc32ff46065f031075cdbbdfe21b9e3b05aaad;p=firefly-linux-kernel-4.4.55.git mac80211: log reason and initiator when rx agg is stopped Add additional debug logging of initiator and reason when rx aggregation session is stopped Signed-off-by: Nikolay Martynov Signed-off-by: John W. Linville --- diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c index d4f23d4dc2c9..98208b6d9d7a 100644 --- a/net/mac80211/agg-rx.c +++ b/net/mac80211/agg-rx.c @@ -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,