]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Fix premature beacon set during association handling
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Tue, 26 Sep 2023 07:42:39 +0000 (13:12 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 26 Sep 2023 08:41:53 +0000 (11:41 +0300)
commite59d2a31cfb46e0388e2819cec94fbc4eba652be
tree3994b9446ad1da40143ebe62900103a0b46232d6
parentae928e67a110d85f7cb468b6642fd8632210a75f
hostapd: Fix premature beacon set during association handling

Currently, during association handling, if any of the iface parameters
changes due to some reason, it calls ieee802_11_set_beacons() function.
This function sets beacon for the all the BSSes in that iface even if
the beacon was not set already. This leads to setting the beacon
prematurely for some BSSes which was intentionally not started.

Fix the above issue by calling ieee802_11_update_beacons() function
instead. This function only updates the beacon if it was already set.

While at it, do the same while freeing STA entry.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
src/ap/ieee802_11.c
src/ap/ieee802_11_ht.c
src/ap/sta_info.c