fc0b0cdcb9
When it comes to set some BSS's beacon, there are two reasons to update the beacon of co-located hostapd_iface(s) at the same time: 1. 6 GHz out-of-band discovery 2. MLD operational parameters update BSS load update is unrelated with the above two reasons, and therefore is not the case to update beacon for co-location. Moreover, updating beacon for co-location when BSS load update makes hostapd set beacon too frequently, which makes hostapd busy setting beacon in a multi-BSS case. Add a new function to update beacon only for current BSS and use the function during BSS load update. Signed-off-by: Michael Lee <michael-cy.lee@mediatek.com> Signed-off-by: Money Wang <money.wang@mediatek.com>
36 lines
1.4 KiB
C
36 lines
1.4 KiB
C
/*
|
|
* hostapd / IEEE 802.11 Management: Beacon and Probe Request/Response
|
|
* Copyright (c) 2002-2004, Instant802 Networks, Inc.
|
|
* Copyright (c) 2005-2006, Devicescape Software, Inc.
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef BEACON_H
|
|
#define BEACON_H
|
|
|
|
struct ieee80211_mgmt;
|
|
|
|
void handle_probe_req(struct hostapd_data *hapd,
|
|
const struct ieee80211_mgmt *mgmt, size_t len,
|
|
int ssi_signal);
|
|
void ieee802_11_set_beacon_per_bss_only(struct hostapd_data *hapd);
|
|
int ieee802_11_set_beacon(struct hostapd_data *hapd);
|
|
int ieee802_11_set_beacons(struct hostapd_iface *iface);
|
|
int ieee802_11_update_beacons(struct hostapd_iface *iface);
|
|
int ieee802_11_build_ap_params(struct hostapd_data *hapd,
|
|
struct wpa_driver_ap_params *params);
|
|
void ieee802_11_free_ap_params(struct wpa_driver_ap_params *params);
|
|
void sta_track_add(struct hostapd_iface *iface, const u8 *addr, int ssi_signal);
|
|
void sta_track_del(struct hostapd_sta_info *info);
|
|
void sta_track_expire(struct hostapd_iface *iface, int force);
|
|
struct hostapd_data *
|
|
sta_track_seen_on(struct hostapd_iface *iface, const u8 *addr,
|
|
const char *ifname);
|
|
void sta_track_claim_taxonomy_info(struct hostapd_iface *iface, const u8 *addr,
|
|
struct wpabuf **probe_ie_taxonomy);
|
|
|
|
const u8 * hostapd_wpa_ie(struct hostapd_data *hapd, u8 eid);
|
|
|
|
#endif /* BEACON_H */
|