[PATCH] Fix build without CONFIG_IEEE80211BE

nick vincent at systemli.org
Mon Feb 9 11:50:06 PST 2026


Everything is fixed by:
https://git.w1.fi/cgit/hostap/commit/?id=dfb788d89f8d68337922d1f8174397d55de056e3

Thanks!

On 2/8/26 8:45 AM, Jouni Malinen wrote:
> On Sat, Feb 07, 2026 at 07:13:10PM +0100, Nick Hainke wrote:
>> Building hostapd without IEEE 802.11be support fails due to undefined
>> references.
>>
>> One call to clear_wpa_sm_for_all_sta() was not guarded by
>> CONFIG_IEEE80211BE, and the first_sta_seen_mbssid callback pulled in
>> functions that are only built when CONFIG_IEEE80211BE is enabled.
> That clear_wpa_sm_for_all_sta() part is covered by an earlier
> contribution that addressed a number of compilation issues. Could you
> please clarify what that first_sta_seen_mbssid part is about? MBSSID
> support can be used without IEEE 802.11be functionality and that
> callback is needed in builds that do not define CONFIG_IEEE80211BE. This
> does not result in compilation issues in my tests.
>
>> diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c
>> @@ -1841,7 +1843,9 @@ int hostapd_setup_wpa(struct hostapd_data *hapd)
>>   #endif /* CONFIG_IEEE80211BE */
>>   		.get_drv_flags = hostapd_wpa_auth_get_drv_flags,
>>   		.remove_pmkid = hostapd_wpa_auth_remove_pmkid,
>> +#ifdef CONFIG_IEEE80211BE
>>   		.first_sta_seen_mbssid = hostapd_first_sta_seen_mbssid,
>> +#endif /* CONFIG_IEEE80211BE */
> This would break wpa_group_first_sta_seen_mbssid() functionality in
> builds that do not define CONFIG_IEEE80211BE since it is used without
> that define and it is hardcoded to return false if that callback is not
> set.
>



More information about the Hostap mailing list