Skip to contentSkip to conversation

rndis_wlan: handle NL80211_AUTHTYPE_AUTOMATIC

PATCH Superseded Jussi Kivilinna 2 participants 3 messages Nov 16, 2009 Networking drivers (wireless)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rndis_wlan: handle NL80211_AUTHTYPE_AUTOMATIC

rndis_wlan didn't know about NL80211_AUTHTYPE_AUTOMATIC and simple setup with 'iwconfig wlan essid no-encrypt' would fail (ENOSUPP).

---

 drivers/net/wireless/rndis_wlan.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/rndis_wlan.c +2 -1
index 54175b6..dfc61fd 100644
@@ -1070,7 +1070,8 @@ static int set_auth_mode(struct usbnet *usbdev, u32 wpa_version,
 			auth_mode = NDIS_80211_AUTH_WPA_NONE;
 	} else if (auth_type == NL80211_AUTHTYPE_SHARED_KEY)
 		auth_mode = NDIS_80211_AUTH_SHARED;
-	else if (auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM)
+	else if (auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM ||
+			auth_type == NL80211_AUTHTYPE_AUTOMATIC)
 		auth_mode = NDIS_80211_AUTH_OPEN;
 	else
 		return -ENOTSUPP;
maintainer
#1 lore raw
Quoted 14 lines · Jussi Kivilinna

rndis_wlan didn't know about NL80211_AUTHTYPE_AUTOMATIC and simple setup with 'iwconfig wlan essid no-encrypt' would fail (ENOSUPP).

---

 drivers/net/wireless/rndis_wlan.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/rndis_wlan.c +0 -0
index 54175b6..dfc61fd 100644

drivers/net/wireless/rndis_wlan.c static int set_auth_mode(struct usbnet *usbdev, u32 wpa_version, · line 1075

Quoted 7 lines
drivers/net/wireless/rndis_wlan.c +2 -1
@@ -1070,7 +1070,8 @@ static int set_auth_mode(struct usbnet *usbdev, u32 wpa_version,
 			auth_mode = NDIS_80211_AUTH_WPA_NONE;
 	} else if (auth_type == NL80211_AUTHTYPE_SHARED_KEY)
 		auth_mode = NDIS_80211_AUTH_SHARED;
-	else if (auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM)
+	else if (auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM ||
+			auth_type == NL80211_AUTHTYPE_AUTOMATIC)
 		auth_mode = NDIS_80211_AUTH_OPEN;

Will that try open and shared though?

johannes

#2 lore raw

Quoting "Johannes Berg" <[email protected]>:

Quoted 3 lines

Will that try open and shared though?

No, I'll post v2 which uses NDIS_80211_AUTH_AUTO_SWITCH instead.

-jussi