The calculation of max BSSID indicator should include all transmitting and non-transmitting profiles from the MBSSID set. Also, for one transmitting and one non-transmitting VAPs, the max BSSID indicator should be 1 however it is set to 2. This patch fixes both issues. Signed-off-by: Aloka Dixit <alokad@xxxxxxxxxxxxxx> --- Depends-on: "multiple_bssid: add support" series in upstream review src/ap/ieee802_11.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index b0575337b2ee..fbb1dfa3ffa0 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -5703,9 +5703,9 @@ static u8 * hostapd_eid_multiple_bssid_chunk(struct hostapd_data *hapd, multiple_bssid_too_big: *count = i; - *num_offset = (u8)ceil(log2(num)); - if (*num_offset < 2) - *num_offset = 2; + *num_offset = (u8)ceil(log2(hapd->iface->num_bss)); + if (*num_offset < 1) + *num_offset = 1; *size_offset = (eid - size_offset) - 1; return eid; base-commit: 02f4946172dea335d1ed7fde7e8de3ebbdef859a prerequisite-patch-id: 6f0719fba383f1e0dc762be7da5788029f34cc3a prerequisite-patch-id: 22601d88ad72e4e9addec18b0c9257c484045832 prerequisite-patch-id: 0705e4aacca8246468960bbc15f8286d666af505 prerequisite-patch-id: 8d54a8fe0bca799e6bcc4a00dd85106a8237dd5d prerequisite-patch-id: ac87754ecaa990144d7fbf75ed2cebd2beab5de4 prerequisite-patch-id: e7bb814f80cee4bfe863b990695fcc3ba5229248 prerequisite-patch-id: 95cb792fddaafba73bb5e62dc6062b8e851b1421 -- 2.25.0 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap