2012-05-17 08:25:55

by Yoni Divinsky

[permalink] [raw]
Subject: Fwd: [PATCH] mac80211: add op to configure default key id to driver

---------- Forwarded message ----------
From: Divinsky, Yonatan <[email protected]>
Date: Tue, May 15, 2012 at 1:59 PM
Subject: Re: [PATCH] mac80211: add op to configure default key id to driver
To: Johannes Berg <[email protected]>


On Tue, May 15, 2012 at 12:08 PM, Johannes Berg
<[email protected]> wrote:
> On Tue, 2012-05-15 at 11:46 +0300, Divinsky, Yonatan wrote:
>> On Tue, May 8, 2012 at 5:06 PM, Johannes Berg <[email protected]> wrote:
>> > On Tue, 2012-05-08 at 15:18 +0300, Yoni Divinsky wrote:
>> >> When hw_accel is enabled and encryption type is set to WEP,
>> >> the driver should get the default key index from mac80211.
>> >
>> > Well, why?
>> >
>> If the WEP encryption is done by the HW, then then low level driver
>> needs to know the defualt key index in
>> case there is more than one WEP key configured.
>
> I don't see why, for every packet mac80211 tells you what key to use.

If the HW supports auto ARP responses, then it will need to have the correct
key id in order to encrypt the ARP response.

>
> johannes
>