Linux wireless drivers development
 help / color / mirror / Atom feed
From: Nikolay Martynov <mar.kolya@gmail.com>
To: linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org, Nikolay Martynov <mar.kolya@gmail.com>
Subject: [PATCH v2 3/3] mac80211: log reason and initiator when rx agg is stopped
Date: Tue, 22 Nov 2011 21:50:30 -0500	[thread overview]
Message-ID: <1322016630-27332-4-git-send-email-mar.kolya@gmail.com> (raw)
In-Reply-To: <1322016630-27332-1-git-send-email-mar.kolya@gmail.com>

  Add additional debug logging of initiator and reason when rx
aggregation session is stopped

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
---
 net/mac80211/agg-rx.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c
index d4f23d4..98208b6 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,
-- 
1.7.4.1


  parent reply	other threads:[~2011-11-23  2:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23  2:50 [PATCH v2 0/3] mac80211: timeout tx agg sessions in way similar to rx agg sessions Nikolay Martynov
2011-11-23  2:50 ` [PATCH v2 1/3] " Nikolay Martynov
2011-11-23  2:50 ` [PATCH v2 2/3] mac80211: trivial: use WLAN_BACK_RECIPIENT instead of hardcoded 0 Nikolay Martynov
2011-11-23  2:50 ` Nikolay Martynov [this message]
2011-11-24 18:17 ` [PATCH v2 0/3] mac80211: timeout tx agg sessions in way similar to rx agg sessions Johannes Berg
2011-11-24 18:34   ` Nikolay Martynov
     [not found]   ` <CALGY4fv6NTRDPUEa-7h+DqaHZwdKnNG4fEmzyHrYZukz3B1gqA@mail.gmail.com>
2011-11-24 18:39     ` Johannes Berg
2011-11-24 18:45       ` Johannes Berg
2011-11-24 18:57         ` Nikolay Martynov
2011-11-25  4:43       ` Nikolay Martynov
2011-11-25  7:34         ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1322016630-27332-4-git-send-email-mar.kolya@gmail.com \
    --to=mar.kolya@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox