mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 02:28:43 +04:00
hostapd: build the DPP frame link choice without IEEE 802.11be
hostapd_dpp_freq_bss() reads hapd->conf->mld_ap, which exists only with CONFIG_IEEE80211BE, so ucode.c did not build without it. Without it there is no AP MLD, and the BSS the caller reached answers. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
1 parent
4fed8d3c79
commit
909be7c9fa
1 file changed
+2
@@ -995,6 +995,7 @@ uc_wpa_rkh_derive_key(uc_vm_t *vm, size_t nargs)
|
||||
static struct hostapd_data *
|
||||
hostapd_dpp_freq_bss(struct hostapd_data *hapd, unsigned int freq)
|
||||
{
|
||||
#ifdef CONFIG_IEEE80211BE
|
||||
struct hostapd_data *link;
|
||||
|
||||
if (!hapd->conf->mld_ap)
|
||||
@@ -1003,6 +1004,7 @@ hostapd_dpp_freq_bss(struct hostapd_data *hapd, unsigned int freq)
|
||||
for_each_mld_link(link, hapd)
|
||||
if (link->iface->freq == (int)freq)
|
||||
return link;
|
||||
#endif /* CONFIG_IEEE80211BE */
|
||||
|
||||
return hapd;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user