From: Johannes Berg <johannes@sipsolutions.net>
To: linux-wireless@vger.kernel.org
Cc: m.sujith@gmail.com, tomasw@gmail.com
Subject: [RFC/RFT 05/11] mac80211: hardware should not deny going back to legacy
Date: Thu, 29 Jan 2009 01:54:55 +0100 [thread overview]
Message-ID: <20090129005808.635331339@sipsolutions.net> (raw)
In-Reply-To: 20090129005450.068797016@sipsolutions.net
Doing so would be an MLME protocol violation when the peer disabled
the aggregation session. Quick driver review indicates that there are
error codes passed all over the drivers but cannot ever be nonzero
except in error conditions that would indicate mac80211 bugs.
No real changes here, since no drivers currently can return -EBUSY.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/mac80211/agg-tx.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
--- wireless-testing.orig/net/mac80211/agg-tx.c 2009-01-27 23:10:02.000000000 +0100
+++ wireless-testing/net/mac80211/agg-tx.c 2009-01-27 23:10:04.000000000 +0100
@@ -406,9 +406,8 @@ int ieee80211_stop_tx_ba_session(struct
ret = local->ops->ampdu_action(hw, IEEE80211_AMPDU_TX_STOP,
&sta->sta, tid, NULL);
- /* case HW denied going back to legacy */
- if (ret) {
- WARN_ON(ret != -EBUSY);
+ /* HW shall not deny going back to legacy */
+ if (WARN_ON(ret)) {
*state = HT_AGG_STATE_OPERATIONAL;
if (hw->ampdu_queues)
ieee80211_wake_queue(hw, sta->tid_to_tx_q[tid]);
--
next prev parent reply other threads:[~2009-01-29 8:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-29 0:54 [RFC/RFT 00/11] mac80211 HT code improvements/bug fixes Johannes Berg
2009-01-29 0:54 ` [RFC/RFT 01/11] mac80211: remove stray aggregation debugfs definition Johannes Berg
2009-01-29 0:54 ` [RFC/RFT 02/11] mac80211: fix RX aggregation timeouts Johannes Berg
2009-01-29 0:54 ` [RFC/RFT 03/11] mac80211: restructure HT code Johannes Berg
2009-01-29 0:54 ` [RFC/RFT 04/11] mac80211: restrict aggregation to supported interface modes Johannes Berg
2009-01-29 0:54 ` Johannes Berg [this message]
2009-01-29 0:54 ` [RFC/RFT 06/11] mac80211: document TX aggregation (and small cleanup) Johannes Berg
2009-01-29 21:51 ` Jouni Malinen
2009-01-30 8:08 ` Johannes Berg
2009-01-29 0:54 ` [RFC/RFT 07/11] mac80211: fix race in TX aggregation Johannes Berg
2009-01-29 0:54 ` [RFC/RFT 08/11] mac80211: fix aggregation timer lockups Johannes Berg
2009-01-29 0:54 ` [RFC/RFT 09/11] mac80211: clean up BA session teardown Johannes Berg
2009-01-29 0:55 ` [RFC/RFT 10/11] mac80211: RX aggregation: clean up stop session Johannes Berg
2009-01-29 0:55 ` [RFC/RFT 11/11] mac80211: further cleanups to stopping BA sessions 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=20090129005808.635331339@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=m.sujith@gmail.com \
--cc=tomasw@gmail.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;
as well as URLs for NNTP newsgroup(s).