Search Linux Wireless

Re: mac80211 hardware encryption

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

 



> > 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
> 
> That souds like a bug in mac80211 then. hw_key_idx is for internal use for the driver,
> and mac80211 should never expect the driver to set it to a particular value.

Yeah, that'd be a bug, and I can't find any such assignment. In fact,
mac80211 doesn't contain any assignment to hw_key_idx or to a 1-4
key_idx from hw_key_idx. Never mind the fact that the tx_control member
could be called hw_key_idx as well...

In any case, for the problem at hand, I wouldn't mind increasing
hw_key_idx to a u16 all the way through, or pass the key_conf pointer
instead.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[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