]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add empty inline functions for CONFIG_NO_WPA
authorJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 16:16:32 +0000 (18:16 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 16:16:32 +0000 (18:16 +0200)
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 <j@w1.fi>
src/rsn_supp/wpa.h

index a4a32ed284e8dd656ad716fa1e81dab90ef5dcee..116e616aaa58e11ba3b081e9b0c51e4b19ca050f 100644 (file)
@@ -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 */