]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
MBSSID: Element ID values in increasing order in Non-Inheritance element
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 21 Dec 2023 11:19:36 +0000 (13:19 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 21 Dec 2023 11:22:03 +0000 (13:22 +0200)
Reorder the Element ID List to fill in the values in increasing order to
match the way the Element ID List is defined.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/ieee802_11.c

index 1438d2ecc1bfd07766d9e02ab9dbc9b426e9016a..dd5acd9c2f4878a823c7524bc8c950715c68b13a 100644 (file)
@@ -7908,13 +7908,14 @@ static u8 * hostapd_eid_mbssid_elem(struct hostapd_data *hapd, u8 *eid, u8 *end,
                                eid += 2 + rsnx[1];
                        }
                }
+               /* List of Element ID values in increasing order */
                if (!rsn && hostapd_wpa_ie(tx_bss, WLAN_EID_RSN))
                        non_inherit_ie[ie_count++] = WLAN_EID_RSN;
-               if (!rsnx && hostapd_wpa_ie(tx_bss, WLAN_EID_RSNX))
-                       non_inherit_ie[ie_count++] = WLAN_EID_RSNX;
                if (hapd->conf->xrates_supported &&
                    !bss->conf->xrates_supported)
                        non_inherit_ie[ie_count++] = WLAN_EID_EXT_SUPP_RATES;
+               if (!rsnx && hostapd_wpa_ie(tx_bss, WLAN_EID_RSNX))
+                       non_inherit_ie[ie_count++] = WLAN_EID_RSNX;
                if (ie_count) {
                        *eid++ = WLAN_EID_EXTENSION;
                        *eid++ = 2 + ie_count + 1;