On Tue, 2006-10-24 at 16:35, Johannes Berg wrote: > On Tue, 2006-10-24 at 16:20 +0800, Hong Liu wrote: > > > It's really strange bcm43xx only does phase2 mixing in hw. With all the > > code that does phase2 mixing, doing phase1 mixing is very cheap. > > Yeah, well, they have the tkip sbox in hw. > > > With Jiri's ieee80211_tx_ctrl_common patch, I think we can put the > > rc4key or phase1 key in ieee80211_tx_control with each TX packet. > > No, the phase1 key is not dependent on the packet so it should not be > there. It should be set via the regular key setting mechanism, instead > of the TKIP key the driver would be given the phase1 key if required. > > johannes
The first time when we set the TKIP key, we can set the phase1 key if the driver requires. The problem is when IV16 wraps, who will generate the new phase1 key? If the stack need to do this, then we will need to call set_key in the packet TX path which I think may not be appropriate. Thanks, Hong - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html