mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-02 04:08:26 -05:00
9b4b226426
Add a configurable neighbor database that includes the content of Nighbor Report element, LCI and Location Civic subelements and SSID. All parameters for a neighbor must be updated at once; Neighbor Report element and SSID are mandatory, LCI and civic are optional. The age of LCI is set to the time of neighbor update. The control interface API is: SET_NEIGHBOR <BSSID> <ssid=SSID> <nr=data> [lci=<data>] [civic=<data>] To delete a neighbor use: REMOVE_NEIGHBOR <BSSID> <SSID> Signed-off-by: David Spinadel <david.spinadel@intel.com>
22 lines
719 B
C
22 lines
719 B
C
/*
|
|
* hostapd / Neighboring APs DB
|
|
* Copyright(c) 2013 - 2016 Intel Mobile Communications GmbH.
|
|
* Copyright(c) 2011 - 2016 Intel Corporation. All rights reserved.
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef NEIGHBOR_DB_H
|
|
#define NEIGHBOR_DB_H
|
|
|
|
int hostapd_neighbor_set(struct hostapd_data *hapd, const u8 *bssid,
|
|
const struct wpa_ssid_value *ssid,
|
|
const struct wpabuf *nr, const struct wpabuf *lci,
|
|
const struct wpabuf *civic);
|
|
int hostapd_neighbor_remove(struct hostapd_data *hapd, const u8 *bssid,
|
|
const struct wpa_ssid_value *ssid);
|
|
void hostpad_free_neighbor_db(struct hostapd_data *hapd);
|
|
|
|
#endif /* NEIGHBOR_DB_H */
|