linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Does mac80211 guarantee no data frames are sent to driver until encryption is setup?
@ 2015-11-13  0:59 Ben Greear
  2015-11-13  6:14 ` Janusz Dziedzic
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Greear @ 2015-11-13  0:59 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org

A certain firmware tries to do EAPOL inspection and only allow data pkts
to be sent after the 4-way M4 has been sent, for instance.

This was breaking .11r because in that case you don't do the 4-way after
roaming, so the firmware was waiting forever for an M4 to be sent and
thus all tx data was hung.

I managed to get this working by just removing all of the EAPOL inspection from the firmware,
but I am thinking that if the stack will send data packets to the driver
before 4-way auth is completed and keys are set, then maybe I would
be opening up a race where un-encrypted frames could hit the air.

Any idea what protections, if any, the mac80211 stack provides
for this case?

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does mac80211 guarantee no data frames are sent to driver until encryption is setup?
  2015-11-13  0:59 Does mac80211 guarantee no data frames are sent to driver until encryption is setup? Ben Greear
@ 2015-11-13  6:14 ` Janusz Dziedzic
  2015-11-13 21:55   ` Ben Greear
  0 siblings, 1 reply; 3+ messages in thread
From: Janusz Dziedzic @ 2015-11-13  6:14 UTC (permalink / raw)
  To: Ben Greear; +Cc: linux-wireless@vger.kernel.org

On 13 November 2015 at 01:59, Ben Greear <greearb@candelatech.com> wrote:
> A certain firmware tries to do EAPOL inspection and only allow data pkts
> to be sent after the 4-way M4 has been sent, for instance.
>
> This was breaking .11r because in that case you don't do the 4-way after
> roaming, so the firmware was waiting forever for an M4 to be sent and
> thus all tx data was hung.
>
> I managed to get this working by just removing all of the EAPOL inspection
> from the firmware,
> but I am thinking that if the stack will send data packets to the driver
> before 4-way auth is completed and keys are set, then maybe I would
> be opening up a race where un-encrypted frames could hit the air.
>
> Any idea what protections, if any, the mac80211 stack provides
> for this case?
>
Check WLAN_STA_AUTHORIZED in mac80211.

BR
Janusz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does mac80211 guarantee no data frames are sent to driver until encryption is setup?
  2015-11-13  6:14 ` Janusz Dziedzic
@ 2015-11-13 21:55   ` Ben Greear
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Greear @ 2015-11-13 21:55 UTC (permalink / raw)
  To: Janusz Dziedzic; +Cc: linux-wireless@vger.kernel.org

On 11/12/2015 10:14 PM, Janusz Dziedzic wrote:
> On 13 November 2015 at 01:59, Ben Greear <greearb@candelatech.com> wrote:
>> A certain firmware tries to do EAPOL inspection and only allow data pkts
>> to be sent after the 4-way M4 has been sent, for instance.
>>
>> This was breaking .11r because in that case you don't do the 4-way after
>> roaming, so the firmware was waiting forever for an M4 to be sent and
>> thus all tx data was hung.
>>
>> I managed to get this working by just removing all of the EAPOL inspection
>> from the firmware,
>> but I am thinking that if the stack will send data packets to the driver
>> before 4-way auth is completed and keys are set, then maybe I would
>> be opening up a race where un-encrypted frames could hit the air.
>>
>> Any idea what protections, if any, the mac80211 stack provides
>> for this case?
>>
> Check WLAN_STA_AUTHORIZED in mac80211.

Thanks for the hint.  Looks like my firmware change should
be perfectly safe in that case.

Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-13 21:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-13  0:59 Does mac80211 guarantee no data frames are sent to driver until encryption is setup? Ben Greear
2015-11-13  6:14 ` Janusz Dziedzic
2015-11-13 21:55   ` Ben Greear

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).