From: Richard Farina <sidhayn@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "Luis R. Rodriguez" <lrodriguez@atheros.com>,
Jouni.Malinen@atheros.com, linville@tuxdriver.com,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH v6] mac80211: do not TX injected frames when not allowed
Date: Mon, 09 Feb 2009 11:12:21 -0500 [thread overview]
Message-ID: <499055E5.6070701@gmail.com> (raw)
In-Reply-To: <1233347900.4070.4.camel@johannes.local>
Johannes Berg wrote:
> On Fri, 2009-01-30 at 09:08 -0800, Luis R. Rodriguez wrote:
>
>> Monitor mode is able to TX by using injected frames. We should
>> not allow injected frames to be sent unless allowed by regulatory
>> rules. Since AP mode uses a monitor interfaces to transmit
>> management frames we have to take care to not break AP mode as
>> well while resolving this. We can deal with this by allowing compliant
>> APs solutions to inform mac80211 if their monitor interface is
>> intended to be used for an AP by setting a cfg80211 flag for the
>> monitor interface. hostapd, for example, currently does its own
>> checks to ensure AP mode is not used on channels which require radar
>> detection. Once such solutions are available it can can add this
>> flag for monitor interfaces.
>>
>> Acked-by: Johannes Berg <johannes@sipsolutions.net>
>> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
>>
Tested-by: Rick Farina <sidhayn@gmail.com>
Nacked-by: Rick Farina <sidhayn@gmail.com>
Luis, when I requested this from you and you cranked out a patch in 30
seconds what you gave me worked great, unfortunately this patch doesn't
perform the intended function for me. If I use this patch and mark,
say, everything as "PASSIVE-SCAN NO-IBSS" I can still send raw packets
out of my interface (confirmed by capturing on another card). The
original patch is as follows:
+ if ((tx->channel->flags & (IEEE80211_CHAN_NO_IBSS |
+ IEEE80211_CHAN_RADAR)))
+ return TX_DROP;
TX_DROP seemed to successfully prevent raw packet transmission on the
channels marked NO_IBSS. Can someone please confirm my findings so we
can get this fixed properly?
Thanks,
Rick Farina
>> ---
>>
>> This v6 leaves the AP flag out and removes the unused sdata..
>>
>
> Yeah, let's go with this until hostapd is fixed anyway.
>
> johannes
>
next prev parent reply other threads:[~2009-02-09 16:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-30 17:08 [PATCH v6] mac80211: do not TX injected frames when not allowed Luis R. Rodriguez
2009-01-30 20:38 ` Johannes Berg
2009-02-09 16:12 ` Richard Farina [this message]
2009-02-09 22:27 ` Luis R. Rodriguez
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=499055E5.6070701@gmail.com \
--to=sidhayn@gmail.com \
--cc=Jouni.Malinen@atheros.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=lrodriguez@atheros.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.