[PATCH] Reduce delay between Assoc REQ and Assoc RESP
Jouni Malinen
j at w1.fi
Thu Nov 2 07:23:52 PDT 2023
On Wed, Nov 01, 2023 at 07:51:49AM +0000, Jurijs Soloveckis wrote:
> There is a delay between sending association response after association request,
> due to the fact that between receiving the request and sending the response the beacon is updated, after analyzing inputs from the STA.
> There may be several updates if multiple fields need to change.
> This can cause issues with some devices in noisy environments with many VAPs and connected STAs.
> The solution:
> 1. Handle the beacon update after the association response is sent.
> 2. Consolidate all the beacon updates to one operation.
> diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
> @@ -4437,7 +4437,8 @@ static void ieee80211_ml_process_link(struct hostapd_data *hapd,
> }
> hapd->sta_aid[(sta->aid - 1) / 32] |= BIT((sta->aid - 1) % 32);
> sta->listen_interval = origin_sta->listen_interval;
> - update_ht_state(hapd, sta);
> + if (update_ht_state(hapd, sta) > 0)
> + ieee802_11_set_beacons(hapd->iface);
This is whitespace damaged (at least tabs replaced with eight spaces,
trailing spaces removed) and as such, does not apply. Would you be able
to send this in a manner that does not message formatting?
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list