diff mbox series

AP: Fix compilation warning in hapd_pasn_update_params()

Message ID 20240110120248.2037059-1-andrei.otcheretianski@intel.com
State Accepted
Headers show
Series AP: Fix compilation warning in hapd_pasn_update_params() | expand

Commit Message

Andrei Otcheretianski Jan. 10, 2024, 12:02 p.m. UTC
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 | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jouni Malinen Jan. 13, 2024, 10:27 p.m. UTC | #1
On Wed, Jan 10, 2024 at 02:02:48PM +0200, Andrei Otcheretianski wrote:
> If CONFIG_FILS isn't set, the compiler complains about unused variables.
> Fix it.

Thanks, applied.
diff mbox series

Patch

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 50190a280b..0029a1baa3 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -2652,8 +2652,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,