WNM: Define a stub wnm_is_bss_excluded if WNM is disabled
This removes the need to check for CONFIG_WNM. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
This commit is contained in:
parent
e164943f43
commit
436f07d02b
2 changed files with 8 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue