wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
wnm_sta.h
Go to the documentation of this file.
1 
5 #ifndef WNM_STA_H
6 #define WNM_STA_H
7 
10  u8 subelem_len;
11  u8 subelems[255];
12 };
13 
15  u8 max_bssid_indicator;
16  u8 subelem_len;
17  u8 subelems[255];
18 };
19 
21  u8 bssid[ETH_ALEN];
22  u32 bssid_info;
23  u8 regulatory_class;
24  u8 channel_number;
25  u8 phy_type;
26  u8 preference; /* valid if preference_present=1 */
27  u16 tsf_offset; /* valid if tsf_present=1 */
28  u16 beacon_int; /* valid if tsf_present=1 */
29  char country[2]; /* valid if country_present=1 */
30  u8 rm_capab[5]; /* valid if rm_capab_present=1 */
31  u16 bearing; /* valid if bearing_present=1 */
32  u16 rel_height; /* valid if bearing_present=1 */
33  u32 distance; /* valid if bearing_present=1 */
34  u64 bss_term_tsf; /* valid if bss_term_present=1 */
35  u16 bss_term_dur; /* valid if bss_term_present=1 */
36  unsigned int preference_present:1;
37  unsigned int tsf_present:1;
38  unsigned int country_present:1;
39  unsigned int rm_capab_present:1;
40  unsigned int bearing_present:1;
41  unsigned int bss_term_present:1;
42  struct measurement_pilot *meas_pilot;
43  struct multiple_bssid *mul_bssid;
44  int freq;
45 };
46 
47 
48 int ieee802_11_send_wnmsleep_req(struct wpa_supplicant *wpa_s,
49  u8 action, u16 intval, struct wpabuf *tfs_req);
50 
51 void ieee802_11_rx_wnm_action(struct wpa_supplicant *wpa_s,
52  const struct ieee80211_mgmt *mgmt, size_t len);
53 
54 int wnm_send_bss_transition_mgmt_query(struct wpa_supplicant *wpa_s,
55  u8 query_reason);
56 void wnm_deallocate_memory(struct wpa_supplicant *wpa_s);
57 
58 
59 #ifdef CONFIG_WNM
60 
61 int wnm_scan_process(struct wpa_supplicant *wpa_s, int reply_on_fail);
62 
63 #else /* CONFIG_WNM */
64 
65 static inline int wnm_scan_process(struct wpa_supplicant *wpa_s,
66  int reply_on_fail)
67 {
68  return 0;
69 }
70 
71 #endif /* CONFIG_WNM */
72 
73 #endif /* WNM_STA_H */
Definition: wnm_sta.h:20
Definition: wpabuf.h:16
Definition: wnm_sta.h:14
Definition: wnm_sta.h:8
Definition: ieee802_11_defs.h:464
Internal data for wpa_supplicant interface.
Definition: wpa_supplicant_i.h:451