]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WNM: Define a stub wnm_is_bss_excluded if WNM is disabled
authorBenjamin Berg <benjamin.berg@intel.com>
Tue, 20 Feb 2024 13:18:19 +0000 (14:18 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 2 Mar 2024 18:52:17 +0000 (20:52 +0200)
This removes the need to check for CONFIG_WNM.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
wpa_supplicant/events.c
wpa_supplicant/wnm_sta.h

index d18f4362867dc55dcc377022f03d5dc980f376d9..fe77eb9f5a10d1bb08b097d143a0d3a442760ebe 100644 (file)
@@ -1692,13 +1692,11 @@ struct wpa_ssid * wpa_scan_res_match(struct wpa_supplicant *wpa_s,
                return NULL;
        }
 
-#ifdef CONFIG_WNM
        if (wnm_is_bss_excluded(wpa_s, bss)) {
                if (debug_print)
                        wpa_dbg(wpa_s, MSG_DEBUG, "   skip - BSSID excluded");
                return NULL;
        }
-#endif /* CONFIG_WNM */
 
        for (ssid = group; ssid; ssid = only_first_ssid ? NULL : ssid->pnext) {
                if (wpa_scan_res_ok(wpa_s, ssid, match_ssid, match_ssid_len,
index 08662f4336fb62ebf920bc83374765e9d8bc5b32..e1bb6724daea278c3c23f88180cecb7c0827f0c7 100644 (file)
@@ -70,7 +70,6 @@ int wnm_send_coloc_intf_report(struct wpa_supplicant *wpa_s, u8 dialog_token,
                               const struct wpabuf *elems);
 void wnm_set_coloc_intf_elems(struct wpa_supplicant *wpa_s,
                              struct wpabuf *elems);
-bool wnm_is_bss_excluded(struct wpa_supplicant *wpa_s, struct wpa_bss *bss);
 
 int wnm_btm_resp_tx_status(struct wpa_supplicant *wpa_s, const u8 *data,
                           size_t data_len);
@@ -80,6 +79,8 @@ int wnm_btm_resp_tx_status(struct wpa_supplicant *wpa_s, const u8 *data,
 int wnm_scan_process(struct wpa_supplicant *wpa_s, bool pre_scan_check);
 void wnm_clear_coloc_intf_reporting(struct wpa_supplicant *wpa_s);
 
+bool wnm_is_bss_excluded(struct wpa_supplicant *wpa_s, struct wpa_bss *bss);
+
 #else /* CONFIG_WNM */
 
 static inline int wnm_scan_process(struct wpa_supplicant *wpa_s,
@@ -92,6 +93,12 @@ static inline void wnm_clear_coloc_intf_reporting(struct wpa_supplicant *wpa_s)
 {
 }
 
+static inline bool
+wnm_is_bss_excluded(struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
+{
+       return false;
+}
+
 #endif /* CONFIG_WNM */
 
 #endif /* WNM_STA_H */