On Thu, 2006-01-19 at 13:51 +0100, Johannes Berg wrote: > On Thu, 2006-01-19 at 16:22 +0800, Zhu Yi wrote: > > > This patch adds ieee80211 TKIP build_iv() method to support hardwares that > > can do TKIP encryption but relies on ieee80211 layer to build the IV. It > > also > > changes the build_iv() interface to return the key if possible after the IV > > is built (this is required by TKIP). > > Could you do the same for WEP please (i.e. add build_iv() support)? > Looking at this patch it seems to break my patch > (http://marc.theaimsgroup.com/?l=linux-netdev&m=113602540003262&w=2) > doing that, but I'm not sure how this ought to be with the new > build_iv() interface.
This patch is based on your patch (mentioned above). It changes the build_iv() interface to add two more parameters. Because for TKIP, the encryption key is changed everytime an IV is built. Since the IV is built by software, we have to return the new key to hardware. So the hardware can encryption the packet correctly. For WEP or even CCMP, the encryption key is not changed together with build_iv. So we can simply pass the key and key_len parameters to NULL and 0. And your WEP implementation can safetly ignore the two parameters. I think it is what I do with the patch. Let me know if it doesn't work for you. Thanks, -yi - 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