]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Avoid unnecessary Beacon frame update for co-location
authorMichael-CY Lee <michael-cy.lee@mediatek.com>
Wed, 1 Nov 2023 09:00:00 +0000 (17:00 +0800)
committerJouni Malinen <j@w1.fi>
Thu, 2 Nov 2023 14:18:36 +0000 (16:18 +0200)
commitfc0b0cdcb98ed5544bdeca72aaa05d920e5c0a36
tree091488dd3c5d6e39811f4287d1ef8b0d12804415
parent8056b79ff1e5d746a82c2ea12011e69e99c11d3d
hostapd: Avoid unnecessary Beacon frame update for co-location

When it comes to set some BSS's beacon, there are two reasons to
update the beacon of co-located hostapd_iface(s) at the same time:
1. 6 GHz out-of-band discovery
2. MLD operational parameters update

BSS load update is unrelated with the above two reasons, and therefore
is not the case to update beacon for co-location. Moreover, updating
beacon for co-location when BSS load update makes hostapd set beacon too
frequently, which makes hostapd busy setting beacon in a multi-BSS case.

Add a new function to update beacon only for current BSS and use the
function during BSS load update.

Signed-off-by: Michael Lee <michael-cy.lee@mediatek.com>
Signed-off-by: Money Wang <money.wang@mediatek.com>
src/ap/beacon.c
src/ap/beacon.h
src/ap/bss_load.c