]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Do not update other links' RNR element if not enabled yet
authorChenming Huang <quic_chenhuan@quicinc.com>
Wed, 13 Mar 2024 09:38:17 +0000 (15:08 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 15 Apr 2024 08:38:49 +0000 (11:38 +0300)
When one link is still under CAC or disabled, peer links should not
carry the information of this link in the RNR elements.

With this change, the RNR element will be included only if a peer link
is in HAPD_IFACE_ENABLED state.

Signed-off-by: Chenming Huang <quic_chenhuan@quicinc.com>
src/ap/ieee802_11.c

index fcb2d14cfa6d439000f040e9a74d98045665ba1c..13b1536ea55d3f09cde3e954708cc8d785e13a5e 100644 (file)
@@ -7461,6 +7461,7 @@ static size_t hostapd_eid_rnr_multi_iface_len(struct hostapd_data *hapd,
 #endif /* CONFIG_IEEE80211BE */
 
                if (iface == hapd->iface ||
+                   iface->state != HAPD_IFACE_ENABLED ||
                    !(is_6ghz_op_class(iface->conf->op_class) || ap_mld))
                        continue;
 
@@ -7734,6 +7735,7 @@ static u8 * hostapd_eid_rnr_multi_iface(struct hostapd_data *hapd, u8 *eid,
 #endif /* CONFIG_IEEE80211BE */
 
                if (iface == hapd->iface ||
+                   iface->state != HAPD_IFACE_ENABLED ||
                    !(is_6ghz_op_class(iface->conf->op_class) || ap_mld))
                        continue;