From: Johannes Berg <johannes@sipsolutions.net>
To: Andrey Yurovsky <andrey@cozybit.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: allow all interfaces types to handle RX action frames
Date: Fri, 24 Oct 2008 10:42:09 +0200 [thread overview]
Message-ID: <1224837729.6002.88.camel@johannes.berg> (raw)
In-Reply-To: <4900da4d.0d87460a.2d4b.1120@mx.google.com> (sfid-20081023_221058_192076_2D6A771F)
[-- Attachment #1: Type: text/plain, Size: 1163 bytes --]
On Thu, 2008-10-23 at 13:10 -0700, Andrey Yurovsky wrote:
> Eliminate the vif.type check in ieee80211_rx_h_action. This check is
> unnecessary (these action frames can be handled by all interface types) and
> currently prevents, for example, AP interfaces from handling BACK action frames
> such as ADDBA and DELBA requests.
>
> Signed-off-by: Andrey Yurovsky <andrey@cozybit.com>
Fine with me.
Acked-by: Johannes Berg <johannes@sipsolutions.net>
> diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
> index a0db162..59bcbb6 100644
> --- a/net/mac80211/rx.c
> +++ b/net/mac80211/rx.c
> @@ -1552,14 +1552,6 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx)
> if (len < IEEE80211_MIN_ACTION_SIZE + 1)
> return RX_DROP_MONITOR;
>
> - /*
> - * FIXME: revisit this, I'm sure we should handle most
> - * of these frames in other modes as well!
> - */
> - if (sdata->vif.type != NL80211_IFTYPE_STATION &&
> - sdata->vif.type != NL80211_IFTYPE_ADHOC)
> - return RX_CONTINUE;
> -
> switch (mgmt->u.action.category) {
> case WLAN_CATEGORY_BACK:
> switch (mgmt->u.action.u.addba_req.action_code) {
>
>
>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2008-10-24 9:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-23 20:10 [PATCH] mac80211: allow all interfaces types to handle RX action frames Andrey Yurovsky
2008-10-24 8:42 ` Johannes Berg [this message]
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=1224837729.6002.88.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=andrey@cozybit.com \
--cc=linux-wireless@vger.kernel.org \
/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