Hi Johannes, On Wed, Jun 24, 2009 at 05:07:46AM -0700, Johannes Berg wrote: > From: Samuel Ortiz <sameo@xxxxxxxxxxxxxxx> > > This patch introduces the cfg80211 connect/disconnect API. > The goal here is to run the AUTH and ASSOC steps in one call. > This is needed for some fullmac cards that run both steps > directly from the target, after the host driver sends a > connect command. With this API, we should now be able to support the iwconfig key restricted stuff, with a patch like that: --- net/wireless/wext-compat.c | 5 +++++ 1 file changed, 5 insertions(+) Index: iwm-2.6/net/wireless/wext-compat.c =================================================================== --- iwm-2.6.orig/net/wireless/wext-compat.c 2009-06-24 17:25:37.000000000 +0200 +++ iwm-2.6/net/wireless/wext-compat.c 2009-06-24 17:25:41.000000000 +0200 @@ -555,6 +555,11 @@ int cfg80211_wext_siwencode(struct net_d return err; } + if (erq->flags & IW_ENCODE_RESTRICTED) + wdev->wext.connect.auth_type = NL80211_AUTHTYPE_SHARED_KEY; + else + wdev->wext.connect.auth_type = NL80211_AUTHTYPE_OPEN_SYSTEM; + memset(¶ms, 0, sizeof(params)); params.key = keybuf; params.key_len = erq->length; -- Intel Open Source Technology Centre http://oss.intel.com/ --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- 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