From: Benjamin Berg <benjamin.berg@xxxxxxxxx> This removes the need to check for CONFIG_WNM. Signed-off-by: Benjamin Berg <benjamin.berg@xxxxxxxxx> --- wpa_supplicant/events.c | 2 -- wpa_supplicant/wnm_sta.h | 9 ++++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 96d6361f0..a9140a03f 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -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, diff --git a/wpa_supplicant/wnm_sta.h b/wpa_supplicant/wnm_sta.h index adb24ce3f..514a92d70 100644 --- a/wpa_supplicant/wnm_sta.h +++ b/wpa_supplicant/wnm_sta.h @@ -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, int reply_on_fail); 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 */ -- 2.43.0 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap