From: Stanislaw Gruszka <sgruszka@redhat.com>
To: Eli Cooper <elicooper@gmx.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH v2] rt2x00: fix monitor mode regression
Date: Mon, 18 Jan 2016 09:45:00 +0100 [thread overview]
Message-ID: <20160118084500.GA3731@redhat.com> (raw)
In-Reply-To: <1452701232-12619-1-git-send-email-elicooper@gmx.com>
On Thu, Jan 14, 2016 at 12:07:12AM +0800, Eli Cooper wrote:
> Since commit df1404650ccbfeb76a84f301f22316be0d00a864 monitor mode for rt2x00
> has been made effectively useless because the hardware filter is configured to
> drop packets whose intended recipient is not the device, regardless of the
> presence of monitor mode interfaces.
>
> This patch fixes this regression by adding explicit monitor mode support, and
> configuring the hardware filter accordingly.
>
> Signed-off-by: Eli Cooper <elicooper@gmx.com>
[snip]
> unsigned int intf_associated;
> unsigned int intf_beaconing;
> + bool is_monitoring;
Could you change to use rt2x00dev->flags instead of new bool
variable i.e. introduce CONFIG_MONITORING in rt2x00_state_flags ?
> + if (ieee80211_flags & IEEE80211_CONF_CHANGE_MONITOR) {
> + if (conf->flags & IEEE80211_CONF_MONITOR) {
> + rt2x00_dbg(rt2x00dev, "Monitor mode is enabled\n");
I don't think those debug messages are actually needed.
Thanks
Stanislaw
prev parent reply other threads:[~2016-01-18 8:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-13 16:07 [PATCH v2] rt2x00: fix monitor mode regression Eli Cooper
2016-01-13 16:32 ` Helmut Schaa
2016-01-18 8:45 ` Stanislaw Gruszka [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=20160118084500.GA3731@redhat.com \
--to=sgruszka@redhat.com \
--cc=elicooper@gmx.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;
as well as URLs for NNTP newsgroup(s).