@@ -7403,6 +7403,9 @@ static size_t hostapd_eid_rnr_multi_iface_len(struct hostapd_data *hapd,
iface = hapd->iface->interfaces->iface[i];
bool ap_mld = false;
+ if (iface->state != HAPD_IFACE_ENABLED)
+ continue;
+
#ifdef CONFIG_IEEE80211BE
if (hapd->conf->mld_ap && iface->bss[0]->conf->mld_ap &&
hapd->conf->mld_id == iface->bss[0]->conf->mld_id)
@@ -7612,6 +7615,9 @@ static u8 * hostapd_eid_rnr_iface(struct hostapd_data *hapd,
u8 tbtt_count = 0, op_class, channel;
bool ap_mld = false;
+ if (iface->state != HAPD_IFACE_ENABLED)
+ return eid;
+
#ifdef CONFIG_IEEE80211BE
ap_mld = !!hapd->conf->mld_ap;
#endif /* CONFIG_IEEE80211BE */
@@ -7676,6 +7682,9 @@ static u8 * hostapd_eid_rnr_multi_iface(struct hostapd_data *hapd, u8 *eid,
iface = hapd->iface->interfaces->iface[i];
bool ap_mld = false;
+ if (iface->state != HAPD_IFACE_ENABLED)
+ continue;
+
#ifdef CONFIG_IEEE80211BE
if (hapd->conf->mld_ap && iface->bss[0]->conf->mld_ap &&
hapd->conf->mld_id == iface->bss[0]->conf->mld_id)