Share a single Linux ioctl helper fo setting interface up/down
[hostap-gosc2009.git] / wpa_supplicant / blacklist.h
blobde280cd71568ca22110763e3ac849bb97a60e468
1 /*
2 * wpa_supplicant - Temporary BSSID blacklist
3 * Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
15 #ifndef BLACKLIST_H
16 #define BLACKLIST_H
18 struct wpa_blacklist {
19 struct wpa_blacklist *next;
20 u8 bssid[ETH_ALEN];
21 int count;
24 struct wpa_blacklist * wpa_blacklist_get(struct wpa_supplicant *wpa_s,
25 const u8 *bssid);
26 int wpa_blacklist_add(struct wpa_supplicant *wpa_s, const u8 *bssid);
27 int wpa_blacklist_del(struct wpa_supplicant *wpa_s, const u8 *bssid);
28 void wpa_blacklist_clear(struct wpa_supplicant *wpa_s);
30 #endif /* BLACKLIST_H */