2012-02-26 16:27:19 +01:00
|
|
|
/*
|
|
|
|
* IEEE 802.11v WNM related functions and structures
|
|
|
|
* Copyright (c) 2011-2012, Qualcomm Atheros, Inc.
|
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WNM_STA_H
|
|
|
|
#define WNM_STA_H
|
|
|
|
|
2013-05-16 16:48:59 +02:00
|
|
|
struct measurement_pilot {
|
|
|
|
u8 measurement_pilot;
|
2014-04-08 00:32:28 +02:00
|
|
|
u8 subelem_len;
|
|
|
|
u8 subelems[255];
|
2013-05-16 16:48:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct multiple_bssid {
|
|
|
|
u8 max_bssid_indicator;
|
2014-04-08 00:32:28 +02:00
|
|
|
u8 subelem_len;
|
|
|
|
u8 subelems[255];
|
2013-05-16 16:48:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct neighbor_report {
|
|
|
|
u8 bssid[ETH_ALEN];
|
2014-11-22 12:43:17 +01:00
|
|
|
u32 bssid_info;
|
2013-05-16 16:48:59 +02:00
|
|
|
u8 regulatory_class;
|
|
|
|
u8 channel_number;
|
|
|
|
u8 phy_type;
|
2014-11-22 14:37:27 +01:00
|
|
|
u8 preference; /* valid if preference_present=1 */
|
|
|
|
u16 tsf_offset; /* valid if tsf_present=1 */
|
|
|
|
u16 beacon_int; /* valid if tsf_present=1 */
|
|
|
|
char country[2]; /* valid if country_present=1 */
|
|
|
|
u8 rm_capab[5]; /* valid if rm_capab_present=1 */
|
|
|
|
u16 bearing; /* valid if bearing_present=1 */
|
|
|
|
u16 rel_height; /* valid if bearing_present=1 */
|
|
|
|
u32 distance; /* valid if bearing_present=1 */
|
|
|
|
u64 bss_term_tsf; /* valid if bss_term_present=1 */
|
|
|
|
u16 bss_term_dur; /* valid if bss_term_present=1 */
|
2023-06-09 11:26:43 +02:00
|
|
|
unsigned int disassoc_imminent:1;
|
2014-11-22 14:37:27 +01:00
|
|
|
unsigned int preference_present:1;
|
|
|
|
unsigned int tsf_present:1;
|
|
|
|
unsigned int country_present:1;
|
|
|
|
unsigned int rm_capab_present:1;
|
|
|
|
unsigned int bearing_present:1;
|
|
|
|
unsigned int bss_term_present:1;
|
2017-03-06 12:46:00 +01:00
|
|
|
unsigned int acceptable:1;
|
|
|
|
#ifdef CONFIG_MBO
|
|
|
|
unsigned int is_first:1;
|
|
|
|
#endif /* CONFIG_MBO */
|
2013-05-16 16:48:59 +02:00
|
|
|
struct measurement_pilot *meas_pilot;
|
|
|
|
struct multiple_bssid *mul_bssid;
|
2014-11-22 18:50:16 +01:00
|
|
|
int freq;
|
2013-05-16 16:48:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2012-02-26 16:27:19 +01:00
|
|
|
int ieee802_11_send_wnmsleep_req(struct wpa_supplicant *wpa_s,
|
2012-12-16 11:31:16 +01:00
|
|
|
u8 action, u16 intval, struct wpabuf *tfs_req);
|
2012-02-26 16:27:19 +01:00
|
|
|
|
|
|
|
void ieee802_11_rx_wnm_action(struct wpa_supplicant *wpa_s,
|
2013-12-29 10:22:23 +01:00
|
|
|
const struct ieee80211_mgmt *mgmt, size_t len);
|
2012-02-26 16:27:19 +01:00
|
|
|
|
2013-05-16 16:50:31 +02:00
|
|
|
int wnm_send_bss_transition_mgmt_query(struct wpa_supplicant *wpa_s,
|
2017-03-08 13:37:40 +01:00
|
|
|
u8 query_reason,
|
|
|
|
const char *btm_candidates,
|
|
|
|
int cand_list);
|
|
|
|
|
2013-05-16 16:48:59 +02:00
|
|
|
void wnm_deallocate_memory(struct wpa_supplicant *wpa_s);
|
2018-10-30 13:00:00 +01:00
|
|
|
int wnm_send_coloc_intf_report(struct wpa_supplicant *wpa_s, u8 dialog_token,
|
|
|
|
const struct wpabuf *elems);
|
|
|
|
void wnm_set_coloc_intf_elems(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpabuf *elems);
|
2013-05-16 16:48:59 +02:00
|
|
|
|
2024-02-20 14:18:18 +01:00
|
|
|
int wnm_btm_resp_tx_status(struct wpa_supplicant *wpa_s, const u8 *data,
|
|
|
|
size_t data_len);
|
2014-11-22 17:04:21 +01:00
|
|
|
|
|
|
|
#ifdef CONFIG_WNM
|
|
|
|
|
2024-02-20 14:18:16 +01:00
|
|
|
int wnm_scan_process(struct wpa_supplicant *wpa_s, bool pre_scan_check);
|
2018-10-30 13:00:00 +01:00
|
|
|
void wnm_clear_coloc_intf_reporting(struct wpa_supplicant *wpa_s);
|
2014-11-22 17:04:21 +01:00
|
|
|
|
2024-02-20 14:18:19 +01:00
|
|
|
bool wnm_is_bss_excluded(struct wpa_supplicant *wpa_s, struct wpa_bss *bss);
|
|
|
|
|
2014-11-22 17:04:21 +01:00
|
|
|
#else /* CONFIG_WNM */
|
|
|
|
|
2014-11-22 19:12:12 +01:00
|
|
|
static inline int wnm_scan_process(struct wpa_supplicant *wpa_s,
|
|
|
|
int reply_on_fail)
|
2014-11-22 17:04:21 +01:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-10-30 13:00:00 +01:00
|
|
|
static inline void wnm_clear_coloc_intf_reporting(struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-02-20 14:18:19 +01:00
|
|
|
static inline bool
|
|
|
|
wnm_is_bss_excluded(struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-11-22 17:04:21 +01:00
|
|
|
#endif /* CONFIG_WNM */
|
|
|
|
|
2012-02-26 16:27:19 +01:00
|
|
|
#endif /* WNM_STA_H */
|