Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754195AbbHaTUJ (ORCPT ); Mon, 31 Aug 2015 15:20:09 -0400 Received: from ns.gsystem.sk ([62.176.172.50]:46042 "EHLO gsystem.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754033AbbHaTUH (ORCPT ); Mon, 31 Aug 2015 15:20:07 -0400 From: Ondrej Zary To: netdev@vger.kernel.org Cc: Kernel development list Subject: [PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM Date: Mon, 31 Aug 2015 21:19:53 +0200 Message-Id: <1441048794-31237-1-git-send-email-linux@rainbow-software.org> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1276 Lines: 34 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 --- 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/