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

Ilan Peer ilan.peer at intel.com
Sun Dec 28 21:15:00 EST 2014


From: Eliad Peller <eliad at 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 at intel.com>
---
 wpa_supplicant/wmm_ac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}
-- 
1.8.3.2



More information about the HostAP mailing list