From: Jouni Malinen <j@w1.fi>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: John Linville <linville@tuxdriver.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] mac80211: remove port control enable switch, clean up sta flags
Date: Tue, 29 Jan 2008 18:08:11 -0800 [thread overview]
Message-ID: <20080130020811.GD5015@jm.kir.nu> (raw)
In-Reply-To: <1201537178.9397.16.camel@johannes.berg>
On Mon, Jan 28, 2008 at 05:19:37PM +0100, Johannes Berg wrote:
> This patch removes the 802.1X port acess control enable flag
> since it is not required. Instead, set the authorized flag for
> each station that we normally communicate with (WDS peers, IBSS
> peers and APs we're associated to) and require hostapd to set
> the authorized flag for all stations when port control is not
> enabled.
OK, that sounds reasonable.
> Also, since I was working in that area, this documents station
> flags and removes the unused "permanent" one.
And changes the flags.. These used to be shared with hostapd. Has that
been abstracted so that there is some kind of mapping taking care of the
differences between hostapd and mac80211? If not, this change does not
look safe..
> -#define WLAN_STA_AUTHORIZED BIT(5) /* If 802.1X is used, this flag is
> - * controlling whether STA is authorized to
> - * send and receive non-IEEE 802.1X frames
> - */
> -#define WLAN_STA_SHORT_PREAMBLE BIT(7)
> -/* whether this is an AP that we are associated with as a client */
> -#define WLAN_STA_ASSOC_AP BIT(8)
> -#define WLAN_STA_WME BIT(9)
> -#define WLAN_STA_WDS BIT(27)
> + WLAN_STA_AUTHORIZED = 1<<4,
> + WLAN_STA_SHORT_PREAMBLE = 1<<5,
> + WLAN_STA_ASSOC_AP = 1<<6,
> + WLAN_STA_WME = 1<<7,
> + WLAN_STA_WDS = 1<<8,
hostapd uses at least authorized, short_preamble, and WME flags and this
change would make these not match with kernel side anymore.. It may be
desirable to break this direct link between the bitfield, but set_flags
operation needs to be mapped properly in that case and I don't know
whether that has already been taken care of in mac80211.
--
Jouni Malinen PGP id EFC895FA
next prev parent reply other threads:[~2008-01-30 2:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-28 16:19 [PATCH] mac80211: remove port control enable switch, clean up sta flags Johannes Berg
2008-01-30 2:08 ` Jouni Malinen [this message]
2008-01-30 12:35 ` 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=20080130020811.GD5015@jm.kir.nu \
--to=j@w1.fi \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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