]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix HE element order in Beacon and Probe Response frames
authorJouni Malinen <j@w1.fi>
Sat, 22 Feb 2020 14:50:10 +0000 (16:50 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 22 Feb 2020 17:20:44 +0000 (19:20 +0200)
Spatial Reuse Parameter Set element is before MU EDCA Parameter Set
element.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/beacon.c

index 56220d93dad9c1cf4d8172e4f11b8fbc00c5b95e..990a38ad4c6a082dd389945fc4f1a5210a8eb273 100644 (file)
@@ -566,8 +566,8 @@ static u8 * hostapd_gen_probe_resp(struct hostapd_data *hapd,
        if (hapd->iconf->ieee80211ax) {
                pos = hostapd_eid_he_capab(hapd, pos, IEEE80211_MODE_AP);
                pos = hostapd_eid_he_operation(hapd, pos);
-               pos = hostapd_eid_he_mu_edca_parameter_set(hapd, pos);
                pos = hostapd_eid_spatial_reuse(hapd, pos);
+               pos = hostapd_eid_he_mu_edca_parameter_set(hapd, pos);
        }
 #endif /* CONFIG_IEEE80211AX */
 
@@ -1287,8 +1287,8 @@ int ieee802_11_build_ap_params(struct hostapd_data *hapd,
                tailpos = hostapd_eid_he_capab(hapd, tailpos,
                                               IEEE80211_MODE_AP);
                tailpos = hostapd_eid_he_operation(hapd, tailpos);
-               tailpos = hostapd_eid_he_mu_edca_parameter_set(hapd, tailpos);
                tailpos = hostapd_eid_spatial_reuse(hapd, tailpos);
+               tailpos = hostapd_eid_he_mu_edca_parameter_set(hapd, tailpos);
        }
 #endif /* CONFIG_IEEE80211AX */