Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1216388

[PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM

From Ondrej Zary <linux@rainbow-software.org>
Newsgroups linux.kernel
Subject [PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM
Date 2015-08-31 21:30 +0200
Message-ID <q3CWd-ej-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Handle IW_AUTH_ALG_OPEN_SYSTEM in set_auth.
This allows wpa_supplicant (and thus NetworkManager) to work with open APs.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
---
 drivers/net/wireless/airo.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index d0c97c2..2066a1f 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -6670,10 +6670,9 @@ static int airo_set_auth(struct net_device *dev,
 		break;
 
 	case IW_AUTH_80211_AUTH_ALG: {
-			/* FIXME: What about AUTH_OPEN?  This API seems to
-			 * disallow setting our auth to AUTH_OPEN.
-			 */
-			if (param->value & IW_AUTH_ALG_SHARED_KEY) {
+			if (param->value & IW_AUTH_ALG_OPEN_SYSTEM) {
+				local->config.authType = AUTH_OPEN;
+			} else if (param->value & IW_AUTH_ALG_SHARED_KEY) {
 				local->config.authType = AUTH_SHAREDKEY;
 			} else if (param->value & IW_AUTH_ALG_OPEN_SYSTEM) {
 				local->config.authType = AUTH_ENCRYPT;
-- 
Ondrej Zary

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM Ondrej Zary <linux@rainbow-software.org> - 2015-08-31 21:30 +0200
  [PATCH 2/2] airo: Implement netif_carrier_on/off Ondrej Zary <linux@rainbow-software.org> - 2015-08-31 21:30 +0200
  Re: [PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM Dan Williams <dcbw@redhat.com> - 2015-08-31 22:50 +0200
    Re: [PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM Ondrej Zary <linux@rainbow-software.org> - 2015-09-01 00:20 +0200
      Re: [PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM Dan Williams <dcbw@redhat.com> - 2015-09-01 02:10 +0200
        Re: [PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM Ondrej Zary <linux@rainbow-software.org> - 2015-09-02 00:30 +0200

csiph-web