diff mbox

[4/7] WMM AC: don't fail on unknown IEs in assoc response

Message ID 1419819303-6798-5-git-send-email-ilan.peer@intel.com
State Accepted
Headers show

Commit Message

Ilan Peer Dec. 29, 2014, 2:15 a.m. UTC
From: Eliad Peller <eliad@wizery.com>

Some APs add their custom (vendor-specific) IEs to the
association respone. Fail wmm ac initiazliation
only if assoc response IEs parsing actually failed.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
---
 wpa_supplicant/wmm_ac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/wpa_supplicant/wmm_ac.c b/wpa_supplicant/wmm_ac.c
index 379c6e8..47d7436 100644
--- a/wpa_supplicant/wmm_ac.c
+++ b/wpa_supplicant/wmm_ac.c
@@ -427,7 +427,7 @@  wmm_ac_process_param_elem(struct wpa_supplicant *wpa_s, const u8 *ies,
 	int i;
 
 	/* Parsing WMM Parameter Element */
-	if (ieee802_11_parse_elems(ies, ies_len, &elems, 1) != ParseOK) {
+	if (ieee802_11_parse_elems(ies, ies_len, &elems, 1) == ParseFailed) {
 		wpa_printf(MSG_DEBUG, "WMM AC: could not parse assoc ies");
 		return NULL;
 	}