]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Fix DFS error message during per station profile generation
authorAaradhana Sahu <quic_aarasahu@quicinc.com>
Fri, 21 Mar 2025 04:42:13 +0000 (10:12 +0530)
committerJouni Malinen <j@w1.fi>
Sat, 22 Mar 2025 08:44:46 +0000 (10:44 +0200)
When two or more radios are configured in automatic channel selection (ACS)
mode, one radio completes ACS and starts generating per-station profiles
for all links during the beacon frame set. However, the other radio is
still in ACS mode, resulting in the following error messages in the
hostapd log:

Failed to check if DFS is required; ret=-1

To address this, generate per-station profiles for the links that have
already completed ACS.

Signed-off-by: Aaradhana Sahu <quic_aarasahu@quicinc.com>
src/ap/beacon.c

index a7d7ecd20686f35af0497f48b60d609bec9b7ca5..13a482d601209c7d8540df653c190619a7a2d2dc 100644 (file)
@@ -3110,7 +3110,7 @@ static void hostapd_gen_per_sta_profiles(struct hostapd_data *hapd)
        struct hostapd_data *link_bss;
        u8 link_id, *sta_profile;
 
-       if (!hapd->conf->mld_ap)
+       if (!hapd->conf->mld_ap || !hapd->started)
                return;
 
        wpa_printf(MSG_DEBUG, "MLD: Generating per STA profiles for MLD %s",