From: Aaradhana Sahu Date: Fri, 21 Mar 2025 04:42:13 +0000 (+0530) Subject: AP MLD: Fix DFS error message during per station profile generation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ca4682882ecadc3e5c2f9dbe6e8825ad705b313;p=thirdparty%2Fhostap.git AP MLD: Fix DFS error message during per station profile generation 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 --- diff --git a/src/ap/beacon.c b/src/ap/beacon.c index a7d7ecd20..13a482d60 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -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",