* [PATCH v2] rndis_wlan: handle NL80211_AUTHTYPE_AUTOMATIC
@ 2009-11-16 10:49 Jussi Kivilinna
2009-11-16 10:56 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Jussi Kivilinna @ 2009-11-16 10:49 UTC (permalink / raw)
To: John W. Linville; +Cc: Johannes Berg, linux-wireless
rndis_wlan didn't know about NL80211_AUTHTYPE_AUTOMATIC and simple
setup with 'iwconfig wlan essid no-encrypt' would fail (ENOSUPP).
v2: use NDIS_80211_AUTH_AUTO_SWITCH instead of _OPEN.
This will make device try shared key auth first, then open.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
---
drivers/net/wireless/rndis_wlan.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] rndis_wlan: handle NL80211_AUTHTYPE_AUTOMATIC
2009-11-16 10:49 [PATCH v2] rndis_wlan: handle NL80211_AUTHTYPE_AUTOMATIC Jussi Kivilinna
@ 2009-11-16 10:56 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2009-11-16 10:56 UTC (permalink / raw)
To: Jussi Kivilinna; +Cc: John W. Linville, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 419 bytes --]
On Mon, 2009-11-16 at 12:49 +0200, Jussi Kivilinna wrote:
> rndis_wlan didn't know about NL80211_AUTHTYPE_AUTOMATIC and simple
> setup with 'iwconfig wlan essid no-encrypt' would fail (ENOSUPP).
>
> v2: use NDIS_80211_AUTH_AUTO_SWITCH instead of _OPEN.
> This will make device try shared key auth first, then open.
Oh how very cool, I was dreading you'd say "can't cfg80211 auto-try
then" :)
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-16 10:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-16 10:49 [PATCH v2] rndis_wlan: handle NL80211_AUTHTYPE_AUTOMATIC Jussi Kivilinna
2009-11-16 10:56 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox