Hi, I am pretty sure that the mac80211 code doesn't handle WEP with shared keys correctly. Using the ath9k driver on my MacBook I am unable to put the driver into restricted mode (shared key). It stays in open mode. That is the following command has no effect: iwconfig wlan0 enc restricted. I can also confirm this when looking at the authentication packets that go over the air: they are sent with the open flag, and not the shared key flag. Surprisingly nowhere in the mac80211 code the ifsta->auth_alg is set to WLAN_AUTH_SHARED_KEY so far. The attached small patch does just that. I am not 100% sure if that's the way to do it, so please review carefully. With this patch authentication works. The AP now denies association, but that is another problem. Cheers Ortwin