]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Fix updating Beacon frames during association handling
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Thu, 11 Jul 2024 09:05:39 +0000 (14:35 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 11 Jul 2024 14:13:45 +0000 (17:13 +0300)
In function handle_assoc(), ieee802_11_update_beacons() was used to
update the Beacon frames. However, with commit a5d0bb42a226 ("Reduce
delay between Association Request and Association Response"), it was
changed to ieee802_11_set_beacons() which basically overturned what
commit e59d2a31cfb4 ("hostapd: Fix premature beacon set during
association handling") did which is not correct.

Fix this and use ieee802_11_update_beacons() instead of
ieee802_11_set_beacons().

Fixes: a5d0bb42a226 ("Reduce delay between Association Request and Association Response")
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
src/ap/ieee802_11.c

index 9af586a7b00af0602c762cf9e52b7ebe4f19a713..7592ba998b57f0a9cde56178e03e52d39f503c91 100644 (file)
@@ -5622,7 +5622,7 @@ static void handle_assoc(struct hostapd_data *hapd,
 #endif /* CONFIG_FILS */
 
        if (set_beacon)
-               ieee802_11_set_beacons(hapd->iface);
+               ieee802_11_update_beacons(hapd->iface);
 
  fail: