Search Linux Wireless

Re: mac80211 hardware encryption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 14, 2008 at 09:39:00PM +0300, Tomas Winkler wrote:

> Not sure what was intention for hw_key_idx but currently there are assignment
> from key->conf.keyidx to hw_key_idx and visa versa.  keyidx is used
> for 802.11 key index [1..4]
> So it's quit risky to use it for something else

hw_key_idx was supposed to be a value that the hardware driver assigns
for each key. This allows the driver to use suitable values that map
easily to whatever key table is used in the hardware/firmware. This is
_not_ same as 802.11 key index (0..3) and no code should made such an
assumption. Based on a quick search, I did not find any net/mac80211
code assigning key->conf.keyidx into hw_key_idx (or struct
ieee80211_tx_control::key_idx).

At least as far as the original design is concerned, hw_key_idx is
controlled by the hardware driver and it is only an internal identifier
for a specific hwaccel key.
 
-- 
Jouni Malinen                                            PGP id EFC895FA
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux