diff options
author | Xin Deng <quic_deng@quicinc.com> | 2023-04-11 18:24:58 +0800 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2023-04-19 11:47:52 +0300 |
commit | f8931fcbafc8889ef96615593d26964cb60910c3 (patch) | |
tree | 6f5802e73f1dce3a13863f887e7e99debf404b7b | |
parent | e8912452ed0354191c53c066bf34fed1e6e276e4 (diff) | |
download | hostap-f8931fcbafc8889ef96615593d26964cb60910c3.tar.gz |
hostapd: Restore the flow of set beacon and WPA key init
hostapd start AP flow changed in commit 931e5d4f9e2e. However, that
could cause a regression in a legacy AP driver where the set key
operation for GTK, IGTK, and BIGTK before AP start (set beacon) would
cause the driver to ignore the key set command. Restore the flow of the
set beacon and WPA key init operations to make sure drivers can receive
and set group keys correctly.
Fixes: 931e5d4f9e2e ("mbssid: Configure all BSSes before beacon setup")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
-rw-r--r-- | src/ap/hostapd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 8b3fb404d..a20882794 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -1476,11 +1476,11 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first, return -1; } - if (hapd->wpa_auth && wpa_init_keys(hapd->wpa_auth) < 0) + if (start_beacon && hostapd_start_beacon(hapd, flush_old_stations) < 0) return -1; - if (start_beacon) - return hostapd_start_beacon(hapd, flush_old_stations); + if (hapd->wpa_auth && wpa_init_keys(hapd->wpa_auth) < 0) + return -1; return 0; } |