diff mbox

hostapd patch review

Message ID 84588AE9369A404CB964759F9219496419B6EF46@IRSMSX105.ger.corp.intel.com
State Superseded
Headers show

Commit Message

Baudelet, Cedric July 9, 2014, 8:56 a.m. UTC
Hi,

Could you please review attached hostapd patches?

Thanks.

Best regards,

Cedric Baudelet
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
diff mbox

Patch

From e97124a787d3f42ea59776807f6927d51f2967ed Mon Sep 17 00:00:00 2001
From: Cedric Baudelet <cedric.baudelet@intel.com>
Date: Thu, 3 Jul 2014 18:04:58 +0200
Subject: [PATCH 2/2] hostapd: hostapd_cli can set wpa_key_mgmt to NONE value
 for open networks

BZ: 209140

Updated hostapd_config_parse_key_mgmt() function to set
val to WPA_KEY_MGMT_NONE is wpa_key_mgmt NONE value is
receive through hostapd_cli.

Change-Id: I20917b0251c2dac2b523bee585eae0fbf0851a20
Category: device enablement
Domain: CWS.WIFI-Common
Origin: internal
Upstream-Candidate: yes
Signed-off-by: Cedric Baudelet <cedric.baudelet@intel.com>
---
 hostapd/config_file.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index be40398..2a82187 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -660,6 +660,8 @@  static int hostapd_config_parse_key_mgmt(int line, const char *value)
 		*end = '\0';
 		if (os_strcmp(start, "WPA-PSK") == 0)
 			val |= WPA_KEY_MGMT_PSK;
+		else if (os_strcmp(start, "NONE") == 0)
+			val |= WPA_KEY_MGMT_NONE;
 		else if (os_strcmp(start, "WPA-EAP") == 0)
 			val |= WPA_KEY_MGMT_IEEE8021X;
 #ifdef CONFIG_IEEE80211R
-- 
1.7.9.5