]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
MBSSID: Use CONFIG_IEEE80211BE more consistently
authorJouni Malinen <jouni.malinen@oss.qualcomm.com>
Tue, 6 May 2025 13:47:49 +0000 (16:47 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 6 May 2025 13:47:49 +0000 (16:47 +0300)
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 <jouni.malinen@oss.qualcomm.com>
src/ap/beacon.c

index de5ebcf0e172244a321650ff5c4c192e9824acc0..c3f61fbbe88ee1477b1c04ff080e77e5857644e0 100644 (file)
@@ -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;