From patchwork Mon Nov 16 10:49:43 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jussi Kivilinna X-Patchwork-Id: 60242 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAGAnp54006555 for ; Mon, 16 Nov 2009 10:49:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752444AbZKPKtl (ORCPT ); Mon, 16 Nov 2009 05:49:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752481AbZKPKtk (ORCPT ); Mon, 16 Nov 2009 05:49:40 -0500 Received: from sypressi.dnainternet.net ([83.102.40.135]:37947 "EHLO sypressi.dnainternet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752444AbZKPKti (ORCPT ); Mon, 16 Nov 2009 05:49:38 -0500 Received: from localhost (localhost [127.0.0.1]) by sypressi.dnainternet.net (Postfix) with ESMTP id CF0F5C697A; Mon, 16 Nov 2009 12:49:43 +0200 (EET) X-Virus-Scanned: DNA Postiturva at dnainternet.net X-Spam-Flag: NO X-Spam-Score: 1.012 X-Spam-Level: * X-Spam-Status: No, score=1.012 tagged_above=-9999 required=6 tests=[AWL=-1.690, HELO_LH_HOME=2.602, RDNS_DYNAMIC=0.1] Received: from sypressi.dnainternet.net ([83.102.40.135]) by localhost (sypressi.dnainternet.net [127.0.0.1]) (amavisd-new, port 10041) with ESMTP id OwvGlo8ODY9W; Mon, 16 Nov 2009 12:49:43 +0200 (EET) Received: from kirsikkapuu.dnainternet.net (kirsikkapuu.dnainternet.net [83.102.40.214]) by sypressi.dnainternet.net (Postfix) with ESMTP id AE7BCC6005; Mon, 16 Nov 2009 12:49:43 +0200 (EET) Received: from fate.lan (dyn2-85-23-163-235.psoas.suomi.net [85.23.163.235]) by kirsikkapuu.dnainternet.net (Postfix) with ESMTP id 980BC7F003; Mon, 16 Nov 2009 12:49:43 +0200 (EET) From: Jussi Kivilinna Subject: [PATCH v2] rndis_wlan: handle NL80211_AUTHTYPE_AUTOMATIC To: "John W. Linville" Cc: Johannes Berg , linux-wireless@vger.kernel.org Date: Mon, 16 Nov 2009 12:49:43 +0200 Message-ID: <20091116104937.3845.62090.stgit@fate.lan> User-Agent: StGIT/0.14.2 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 54175b6..aa1880a 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c @@ -1072,6 +1072,8 @@ static int set_auth_mode(struct usbnet *usbdev, u32 wpa_version, auth_mode = NDIS_80211_AUTH_SHARED; else if (auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM) auth_mode = NDIS_80211_AUTH_OPEN; + else if (auth_type == NL80211_AUTHTYPE_AUTOMATIC) + auth_mode = NDIS_80211_AUTH_AUTO_SWITCH; else return -ENOTSUPP;