]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Fix compilation warning in hapd_pasn_update_params()
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 10 Jan 2024 12:02:48 +0000 (14:02 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 21:47:20 +0000 (23:47 +0200)
If CONFIG_FILS isn't set, the compiler complains about unused variables.
Fix it.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/ap/ieee802_11.c

index 30a6394c506afb7d0ebe998156657e334210bcae..c448ce0a92e681f3cc7ac3bfe347ad392694df98 100644 (file)
@@ -2647,8 +2647,10 @@ static void hapd_pasn_update_params(struct hostapd_data *hapd,
        struct pasn_data *pasn = sta->pasn;
        struct ieee802_11_elems elems;
        struct wpa_ie_data rsn_data;
+#ifdef CONFIG_FILS
        struct wpa_pasn_params_data pasn_params;
        struct wpabuf *wrapped_data = NULL;
+#endif /* CONFIG_FILS */
 
        if (ieee802_11_parse_elems(mgmt->u.auth.variable,
                                   len - offsetof(struct ieee80211_mgmt,