From: Jouni Malinen Date: Sun, 22 Dec 2024 16:16:32 +0000 (+0200) Subject: Add empty inline functions for CONFIG_NO_WPA X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6857b0c4184a828ec09f910676e78208f897c0f7;p=thirdparty%2Fhostap.git Add empty inline functions for CONFIG_NO_WPA These recently added functions were used outside ifder CONFIG_NO_WPA, so they need to have the empty inline functions in wpa.h to avoid compilation issues. Signed-off-by: Jouni Malinen --- diff --git a/src/rsn_supp/wpa.h b/src/rsn_supp/wpa.h index a4a32ed28..116e616aa 100644 --- a/src/rsn_supp/wpa.h +++ b/src/rsn_supp/wpa.h @@ -277,6 +277,8 @@ void wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm, int wpa_fils_is_completed(struct wpa_sm *sm); void wpa_sm_pmksa_cache_reconfig(struct wpa_sm *sm); int wpa_sm_set_mlo_params(struct wpa_sm *sm, const struct wpa_sm_mlo *mlo); +void wpa_sm_set_driver_bss_selection(struct wpa_sm *sm, + bool driver_bss_selection); #else /* CONFIG_NO_WPA */ @@ -320,6 +322,11 @@ static inline void wpa_sm_set_config(struct wpa_sm *sm, { } +static inline void wpa_sm_set_ssid(struct wpa_sm *sm, const u8 *ssid, + size_t ssid_len) +{ +} + static inline void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr) { } @@ -515,6 +522,11 @@ static inline int wpa_sm_set_mlo_params(struct wpa_sm *sm, return 0; } +static inline void wpa_sm_set_driver_bss_selection(struct wpa_sm *sm, + bool driver_bss_selection) +{ +} + #endif /* CONFIG_NO_WPA */ #ifdef CONFIG_IEEE80211R @@ -655,7 +667,5 @@ struct rsn_pmksa_cache * wpa_sm_get_pmksa_cache(struct wpa_sm *sm); void wpa_sm_set_cur_pmksa(struct wpa_sm *sm, struct rsn_pmksa_cache_entry *entry); const u8 * wpa_sm_get_auth_addr(struct wpa_sm *sm); -void wpa_sm_set_driver_bss_selection(struct wpa_sm *sm, - bool driver_bss_selection); #endif /* WPA_H */