From: Denis Kenzior <denkenz@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>,
linux-wireless@vger.kernel.org
Subject: Re: [RFC v2 3/5] mac80211: Send control port frames over nl80211
Date: Mon, 15 Jan 2018 09:24:39 -0600 [thread overview]
Message-ID: <a7b47de8-ad2c-2b73-1e71-d70c47281845@gmail.com> (raw)
In-Reply-To: <1516021789.410.28.camel@sipsolutions.net>
Hi Johannes,
On 01/15/2018 07:09 AM, Johannes Berg wrote:
> On Wed, 2018-01-10 at 11:09 -0600, Denis Kenzior wrote:
>
>> Pre-authentication type frames (protocol: 0x88c7) are also forwarded
>> over nl80211.
>
> Interesting - maybe userspace should be able to configure a(n) (list
> of) ethertype(s)?
>
I'm not so sure. Preauthentication is different from EAPoL frames and
most of the special-case checks for control_port_ethertype inside
mac80211 do not apply to it. I think it might be safer to carry it as a
special case to the special case :P
>> Signed-off-by: Denis Kenzior <denkenz@gmail.com>
>> ---
>> net/mac80211/cfg.c | 2 ++
>> net/mac80211/ieee80211_i.h | 1 +
>> net/mac80211/mlme.c | 2 ++
>> net/mac80211/rx.c | 31 ++++++++++++++++++++++++++++---
>> 4 files changed, 33 insertions(+), 3 deletions(-)
>>
>> diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
>> index 46028e12e216..f53bfb27295f 100644
>> --- a/net/mac80211/cfg.c
>> +++ b/net/mac80211/cfg.c
>> @@ -925,6 +925,7 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,
>> */
>> sdata->control_port_protocol = params->crypto.control_port_ethertype;
>> sdata->control_port_no_encrypt = params->crypto.control_port_no_encrypt;
>> + sdata->control_port_over_nl80211 = false;
>
> It's probably better to reset this at interface type switching, if it's
> not done anyway (we zero a lot of memory there, but not sure precisely
> what)
>
> Otherwise we'll surely forget this in some place like mesh or OCB ...
>
> Initially it must be false (0) anyway.
>
Where do I look? Right now I'm mostly following the precedent of other
control_port_* stuff.
Regards,
-Denis
next prev parent reply other threads:[~2018-01-15 15:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-10 17:09 [RFC v2 0/5] EAPoL over NL80211 Denis Kenzior
2018-01-10 17:09 ` [RFC v2 1/5] nl80211: Add CONTROL_PORT_OVER_NL80211 attribute Denis Kenzior
2018-01-15 12:58 ` Johannes Berg
2018-01-10 17:09 ` [RFC v2 2/5] nl80211: Add CMD_CONTROL_PORT_FRAME API Denis Kenzior
2018-01-15 13:04 ` Johannes Berg
2018-01-10 17:09 ` [RFC v2 3/5] mac80211: Send control port frames over nl80211 Denis Kenzior
2018-01-15 13:09 ` Johannes Berg
2018-01-15 15:24 ` Denis Kenzior [this message]
2018-01-16 13:33 ` Johannes Berg
2018-01-10 17:09 ` [RFC v2 4/5] nl80211: Implement TX of control port frames Denis Kenzior
2018-01-15 13:14 ` Johannes Berg
2018-01-15 16:03 ` Denis Kenzior
2018-01-16 13:32 ` Johannes Berg
2018-01-10 17:09 ` [RFC v2 5/5] mac80211: Add support for tx_control_port Denis Kenzior
2018-01-15 13:15 ` 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=a7b47de8-ad2c-2b73-1e71-d70c47281845@gmail.com \
--to=denkenz@gmail.com \
--cc=johannes@sipsolutions.net \
--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).