* [PATCH] mac80211: Do not encrypt EAPOL frames in IBSS Mode.
@ 2012-01-26 12:42 Nicolas Cavallari
2012-01-26 18:12 ` Johannes Berg
2012-01-28 4:38 ` Johannes Berg
0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Cavallari @ 2012-01-26 12:42 UTC (permalink / raw)
To: John W. Linville, Johannes Berg; +Cc: linux-wireless
Currently, EAPOL Frames in IBSS mode are encrypted if a PTK
is available. This patch turn off encryption for all EAPOL
frames when on IBSS mode, as there is no suitable userspace
calls to configure the control port protocol and settings.
IBSS RSN sort-of worked without this patch because PTKs
are only installed after the completion of a successful
EAPOL exchange, so unicast operations would work, but
multicast and rekeying would often fail.
Signed-off-by: Nicolas Cavallari <cavallar@lri.fr>
---
net/mac80211/ibss.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index bed30ba..9d8e699 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -1022,6 +1022,8 @@ void ieee80211_ibss_setup_sdata(struct ieee80211_sub_if_data *sdata)
{
struct ieee80211_if_ibss *ifibss = &sdata->u.ibss;
+ sdata->control_port_no_encrypt = true;
+
setup_timer(&ifibss->timer, ieee80211_ibss_timer,
(unsigned long) sdata);
mutex_init(&ifibss->mtx);
--
1.7.8.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mac80211: Do not encrypt EAPOL frames in IBSS Mode.
2012-01-26 12:42 [PATCH] mac80211: Do not encrypt EAPOL frames in IBSS Mode Nicolas Cavallari
@ 2012-01-26 18:12 ` Johannes Berg
2012-01-28 4:38 ` Johannes Berg
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2012-01-26 18:12 UTC (permalink / raw)
To: Nicolas Cavallari; +Cc: John W. Linville, linux-wireless
On 2012-01-26 05:42, Nicolas Cavallari wrote:
> Currently, EAPOL Frames in IBSS mode are encrypted if a PTK
> is available. This patch turn off encryption for all EAPOL
> frames when on IBSS mode, as there is no suitable userspace
> calls to configure the control port protocol and settings.
>
> IBSS RSN sort-of worked without this patch because PTKs
> are only installed after the completion of a successful
> EAPOL exchange, so unicast operations would work, but
> multicast and rekeying would often fail.
Err, NACK? I'm 99% sure this is completely wrong -- point out where the
IEEE RSN spec allows this.
johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mac80211: Do not encrypt EAPOL frames in IBSS Mode.
2012-01-26 12:42 [PATCH] mac80211: Do not encrypt EAPOL frames in IBSS Mode Nicolas Cavallari
2012-01-26 18:12 ` Johannes Berg
@ 2012-01-28 4:38 ` Johannes Berg
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2012-01-28 4:38 UTC (permalink / raw)
To: Nicolas Cavallari; +Cc: John W. Linville, linux-wireless
On 1/26/2012 4:42 AM, Nicolas Cavallari wrote:
> Currently, EAPOL Frames in IBSS mode are encrypted if a PTK
> is available. This patch turn off encryption for all EAPOL
> frames when on IBSS mode, as there is no suitable userspace
> calls to configure the control port protocol and settings.
>
> IBSS RSN sort-of worked without this patch because PTKs
> are only installed after the completion of a successful
> EAPOL exchange, so unicast operations would work, but
> multicast and rekeying would often fail.
>
> Signed-off-by: Nicolas Cavallari<cavallar@lri.fr>
> ---
> net/mac80211/ibss.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
> index bed30ba..9d8e699 100644
> --- a/net/mac80211/ibss.c
> +++ b/net/mac80211/ibss.c
> @@ -1022,6 +1022,8 @@ void ieee80211_ibss_setup_sdata(struct ieee80211_sub_if_data *sdata)
> {
> struct ieee80211_if_ibss *ifibss =&sdata->u.ibss;
>
> + sdata->control_port_no_encrypt = true;
In addition to my earlier comment about this being totally wrong -- if
you REALLY wanted it, you should probably just add the few API tweaks to
be able to set it from userspace and tweak your userspace.
johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-28 4:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-26 12:42 [PATCH] mac80211: Do not encrypt EAPOL frames in IBSS Mode Nicolas Cavallari
2012-01-26 18:12 ` Johannes Berg
2012-01-28 4:38 ` Johannes Berg
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).