diff options
author | Aloka Dixit <quic_alokad@quicinc.com> | 2023-04-04 10:58:58 -0700 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2023-04-18 11:14:07 +0300 |
commit | 8f1d3841979f47cbe05846e132e1006c0e10034e (patch) | |
tree | 87385c0030be709f06077271e2ad8bda1711c386 | |
parent | 921f82cf185ad4b11c8ddc6a1b3ebd00a03f8936 (diff) | |
download | hostap-8f1d3841979f47cbe05846e132e1006c0e10034e.tar.gz |
RNR: Skip interfaces on the same radio for MBSSID
Do not include interfaces on the same radio in reduced neighbor
report elements (RNR) as multiple BSSID elements from the same
management frame already include these if MBSSID feature is enabled.
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
-rw-r--r-- | src/ap/ieee802_11.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 0142ee44a..c5962abb0 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -6550,7 +6550,8 @@ size_t hostapd_eid_rnr_len(struct hostapd_data *hapd, u32 type) total_len += hostapd_eid_rnr_colocation_len( hapd, ¤t_len); - if (hapd->conf->rnr && hapd->iface->num_bss > 1) + if (hapd->conf->rnr && hapd->iface->num_bss > 1 && + !hapd->iconf->mbssid) total_len += hostapd_eid_rnr_iface_len(hapd, hapd, ¤t_len); break; @@ -6759,7 +6760,8 @@ u8 * hostapd_eid_rnr(struct hostapd_data *hapd, u8 *eid, u32 type) eid = hostapd_eid_rnr_colocation(hapd, eid, ¤t_len); - if (hapd->conf->rnr && hapd->iface->num_bss > 1) + if (hapd->conf->rnr && hapd->iface->num_bss > 1 && + !hapd->iconf->mbssid) eid = hostapd_eid_rnr_iface(hapd, hapd, eid, ¤t_len); break; |