1 /*
2  * wpa_supplicant - List of temporarily ignored BSSIDs
3  * Copyright (c) 2003-2021, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef BSSID_IGNORE_H
10 #define BSSID_IGNORE_H
11 
12 struct wpa_bssid_ignore {
13           struct wpa_bssid_ignore *next;
14           u8 bssid[ETH_ALEN];
15           int count;
16           /* Time of the most recent trigger to ignore this BSSID. */
17           struct os_reltime start;
18           /*
19            * Number of seconds after start that the entey will be considered
20            * valid.
21            */
22           int timeout_secs;
23 };
24 
25 struct wpa_bssid_ignore * wpa_bssid_ignore_get(struct wpa_supplicant *wpa_s,
26                                                    const u8 *bssid);
27 int wpa_bssid_ignore_add(struct wpa_supplicant *wpa_s, const u8 *bssid);
28 int wpa_bssid_ignore_del(struct wpa_supplicant *wpa_s, const u8 *bssid);
29 int wpa_bssid_ignore_is_listed(struct wpa_supplicant *wpa_s, const u8 *bssid);
30 void wpa_bssid_ignore_clear(struct wpa_supplicant *wpa_s);
31 void wpa_bssid_ignore_update(struct wpa_supplicant *wpa_s);
32 
33 #endif /* BSSID_IGNORE_H */
34