From: Jouni Malinen Date: Tue, 6 May 2025 13:47:49 +0000 (+0300) Subject: MBSSID: Use CONFIG_IEEE80211BE more consistently X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a915c488286dd1315f51e945d4ad5a2edfa2e9c;p=thirdparty%2Fhostap.git MBSSID: Use CONFIG_IEEE80211BE more consistently Avoid compiler warning about unused local variable when CONFIG_IEEE80211BE is not defined. Fixes: 806a29e9f1e0 ("MBSSID: Handle Probe Response frame formation with MLO MBSSID") Signed-off-by: Jouni Malinen --- diff --git a/src/ap/beacon.c b/src/ap/beacon.c index de5ebcf0e..c3f61fbbe 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -738,7 +738,9 @@ static void hostapd_free_probe_resp_params(struct probe_resp_params *params) static size_t hostapd_probe_resp_elems_len(struct hostapd_data *hapd, struct probe_resp_params *params) { +#ifdef CONFIG_IEEE80211BE struct hostapd_data *hapd_probed = hapd; +#endif /* CONFIG_IEEE80211BE */ size_t buflen = 0; hapd = hostapd_mbssid_get_tx_bss(hapd); @@ -812,7 +814,9 @@ static u8 * hostapd_probe_resp_fill_elems(struct hostapd_data *hapd, struct probe_resp_params *params, u8 *pos, size_t len) { +#ifdef CONFIG_IEEE80211BE struct hostapd_data *hapd_probed = hapd; +#endif /* CONFIG_IEEE80211BE */ u8 *csa_pos; u8 *epos;