wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sme.h
Go to the documentation of this file.
1 
5 #ifndef SME_H
6 #define SME_H
7 
8 #ifdef CONFIG_SME
9 
10 void sme_authenticate(struct wpa_supplicant *wpa_s,
11  struct wpa_bss *bss, struct wpa_ssid *ssid);
12 void sme_associate(struct wpa_supplicant *wpa_s, enum wpas_mode mode,
13  const u8 *bssid, u16 auth_type);
14 void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data);
15 int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
16  const u8 *ies, size_t ies_len);
17 void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
18  union wpa_event_data *data);
19 void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
20  union wpa_event_data *data);
21 void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
22  union wpa_event_data *data);
23 void sme_event_disassoc(struct wpa_supplicant *wpa_s,
24  struct disassoc_info *info);
25 void sme_event_unprot_disconnect(struct wpa_supplicant *wpa_s, const u8 *sa,
26  const u8 *da, u16 reason_code);
27 void sme_sa_query_rx(struct wpa_supplicant *wpa_s, const u8 *sa,
28  const u8 *data, size_t len);
29 void sme_state_changed(struct wpa_supplicant *wpa_s);
30 void sme_disassoc_while_authenticating(struct wpa_supplicant *wpa_s,
31  const u8 *prev_pending_bssid);
32 void sme_clear_on_disassoc(struct wpa_supplicant *wpa_s);
33 void sme_deinit(struct wpa_supplicant *wpa_s);
34 
35 int sme_proc_obss_scan(struct wpa_supplicant *wpa_s);
36 void sme_sched_obss_scan(struct wpa_supplicant *wpa_s, int enable);
37 
38 #else /* CONFIG_SME */
39 
40 static inline void sme_authenticate(struct wpa_supplicant *wpa_s,
41  struct wpa_bss *bss,
42  struct wpa_ssid *ssid)
43 {
44 }
45 
46 static inline void sme_event_auth(struct wpa_supplicant *wpa_s,
47  union wpa_event_data *data)
48 {
49 }
50 
51 static inline int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
52  const u8 *ies, size_t ies_len)
53 {
54  return -1;
55 }
56 
57 
58 static inline void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
59  union wpa_event_data *data)
60 {
61 }
62 
63 static inline void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
64  union wpa_event_data *data)
65 {
66 }
67 
68 static inline void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
69  union wpa_event_data *data)
70 {
71 }
72 
73 static inline void sme_event_disassoc(struct wpa_supplicant *wpa_s,
74  struct disassoc_info *info)
75 {
76 }
77 
78 static inline void sme_event_unprot_disconnect(struct wpa_supplicant *wpa_s,
79  const u8 *sa, const u8 *da,
80  u16 reason_code)
81 {
82 }
83 
84 static inline void sme_state_changed(struct wpa_supplicant *wpa_s)
85 {
86 }
87 
88 static inline void
89 sme_disassoc_while_authenticating(struct wpa_supplicant *wpa_s,
90  const u8 *prev_pending_bssid)
91 {
92 }
93 
94 static inline void sme_clear_on_disassoc(struct wpa_supplicant *wpa_s)
95 {
96 }
97 
98 static inline void sme_deinit(struct wpa_supplicant *wpa_s)
99 {
100 }
101 
102 static inline int sme_proc_obss_scan(struct wpa_supplicant *wpa_s)
103 {
104  return 0;
105 }
106 
107 static inline void sme_sched_obss_scan(struct wpa_supplicant *wpa_s,
108  int enable)
109 {
110 }
111 
112 #endif /* CONFIG_SME */
113 
114 #endif /* SME_H */
BSS table.
Definition: bss.h:52
Internal data for wpa_supplicant interface.
Definition: wpa_supplicant_i.h:451
Network configuration data.
Definition: config_ssid.h:52
union wpa_event_data - Additional data for wpa_supplicant_event() calls
Definition: driver.h:4130