On Thu, May 8, 2008 at 9:31 PM, Volker Braun <vbraun@xxxxxxxxxxxxxxxxx> wrote: > Here is more data on my problem with dynamic wep. > Thanks for that ! > compat-wireless-2008-05-07 + iwl4965 + swcrypto=1: Associates and > obtains dhcp lease, works fine. > > So it really is about the HW accelleration. I tried your patch (without > swcrypto=1). First, output of wpa_supplicant: > Yep... > Your patch yields: > > May 8 14:03:54 localhost kernel: iwl4965: enable hwcrypto key sta=31 alg=0,keyid=1 static_key=1 > May 8 14:03:54 localhost kernel: iwl4965: enable hwcrypto key sta=0 alg=0,keyid=3 static_key=0 > sta_id 31 is the broadcast station => key_idx = 1 for bcast station This really proves what Tomas said: you get the unicast key after the groupkey. Quite strange, we thought it couldn't happen, and actually, we hadn't any use case that led to this scenario. I am not sure I will be able to reproduce the bug here, in any case, I understand what the issue is and will try to send a patch shortly (next week) > Should static_key not be the other way round (key_idx 3 is unicast)? In > any case, after a while the broadcast key gets updated: wpa_supplicant > says > {...} This is likely because your AP is configured to rekey the groupkey every ... minutes. So the groupkey is updated. > May 8 14:05:10 localhost kernel: iwl4965: enable hwcrypto key sta=31 alg=0,keyid=2 static_key=0 Yep, the idx of the group key is now 2 (it was 1 before) > May 8 14:10:30 localhost kernel: iwl4965: disable hwcrypto key sta=31 alg=0,keyid=1 static_key=1 > May 8 14:10:30 localhost kernel: iwl4965: enable hwcrypto key sta=31 alg=0,keyid=1 static_key=0 See ? now the group key idx and 1 again. This is normal, this the way the AP switches between the keys: 1, 2, 1, 2, .... wpa_supp first install 1, then 2, then removes one (the disable hwcrypto line) and updates the "new" 1 etc.... thanks -- Emmanuel Grumbach egrumbach@xxxxxxxxx -- 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