AP MLD: Do not update other links' RNR element if not enabled yet

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>
This commit is contained in:
Chenming Huang 2024-03-13 15:08:17 +05:30 committed by Jouni Malinen
parent 32261721e1
commit aaf879ef20

View 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;