]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WMM AC: Do not fail on unknown IEs in Association Response
authorEliad Peller <eliad@wizery.com>
Mon, 29 Dec 2014 02:15:00 +0000 (21:15 -0500)
committerJouni Malinen <j@w1.fi>
Sun, 4 Jan 2015 16:33:29 +0000 (18:33 +0200)
Some APs add their custom (vendor-specific) IEs to the Association
Response frame. Fail WMM AC initialization only if Association Response
frame IE parsing actually failed, i.e., ignore all unknown IEs.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
wpa_supplicant/wmm_ac.c

index 379c6e8d181c746cc0eb5387a9320a18d9202ab6..47d74368c28aa9b980873e1a2c2401c079c0fc71 100644 (file)
@@ -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;
        }