wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Functions
blacklist.h File Reference

wpa_supplicant - Temporary BSSID blacklist More...

Go to the source code of this file.

Data Structures

struct  wpa_blacklist
 

Functions

struct wpa_blacklistwpa_blacklist_get (struct wpa_supplicant *wpa_s, const u8 *bssid)
 Get the blacklist entry for a BSSID. More...
 
int wpa_blacklist_add (struct wpa_supplicant *wpa_s, const u8 *bssid)
 Add an BSSID to the blacklist. More...
 
int wpa_blacklist_del (struct wpa_supplicant *wpa_s, const u8 *bssid)
 Remove an BSSID from the blacklist. More...
 
void wpa_blacklist_clear (struct wpa_supplicant *wpa_s)
 Clear the blacklist of all entries. More...
 

Detailed Description

wpa_supplicant - Temporary BSSID blacklist

Function Documentation

int wpa_blacklist_add ( struct wpa_supplicant wpa_s,
const u8 *  bssid 
)

Add an BSSID to the blacklist.

Parameters
wpa_sPointer to wpa_supplicant data
bssidBSSID to be added to the blacklist
Returns
Current blacklist count on success, -1 on failure

This function adds the specified BSSID to the blacklist or increases the blacklist count if the BSSID was already listed. It should be called when an association attempt fails either due to the selected BSS rejecting association or due to timeout.

This blacklist is used to force wpa_supplicant to go through all available BSSes before retrying to associate with an BSS that rejected or timed out association. It does not prevent the listed BSS from being used; it only changes the order in which they are tried.

void wpa_blacklist_clear ( struct wpa_supplicant wpa_s)

Clear the blacklist of all entries.

Parameters
wpa_sPointer to wpa_supplicant data
int wpa_blacklist_del ( struct wpa_supplicant wpa_s,
const u8 *  bssid 
)

Remove an BSSID from the blacklist.

Parameters
wpa_sPointer to wpa_supplicant data
bssidBSSID to be removed from the blacklist
Returns
0 on success, -1 on failure
struct wpa_blacklist* wpa_blacklist_get ( struct wpa_supplicant wpa_s,
const u8 *  bssid 
)

Get the blacklist entry for a BSSID.

Parameters
wpa_sPointer to wpa_supplicant data
bssidBSSID
Returns
Matching blacklist entry for the BSSID or NULL if not found