Re-order elements in (Re)Association Request frames
authorAvraham Stern <avraham.stern@intel.com>
Mon, 15 Feb 2016 14:53:48 +0000 (16:53 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 22 Feb 2016 17:53:04 +0000 (19:53 +0200)
According to IEEE Std 802.11-2012, Table 8-22, RM Enabled Capabilities
element must come before the Extended Capabilities element.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
wpa_supplicant/sme.c

index 068ded7..1c046a9 100644 (file)
@@ -456,6 +456,8 @@ static void sme_send_authentication(struct wpa_supplicant *wpa_s,
        }
 #endif /* CONFIG_FST */
 
+       sme_auth_handle_rrm(wpa_s, bss);
+
 #ifdef CONFIG_MBO
        mbo = wpa_bss_get_vendor_ie(bss, MBO_IE_VENDOR_TYPE);
        if (mbo) {
@@ -498,8 +500,6 @@ static void sme_send_authentication(struct wpa_supplicant *wpa_s,
                }
        }
 
-       sme_auth_handle_rrm(wpa_s, bss);
-
 #ifdef CONFIG_MBO
        if (mbo) {
                int len;