2009-03-20 21:26:41 +01:00
|
|
|
/*
|
|
|
|
* wpa_supplicant - SME
|
2010-03-13 16:14:41 +01:00
|
|
|
* Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi>
|
2009-03-20 21:26:41 +01:00
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2009-03-20 21:26:41 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SME_H
|
|
|
|
#define SME_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_SME
|
|
|
|
|
|
|
|
void sme_authenticate(struct wpa_supplicant *wpa_s,
|
2010-01-02 15:16:02 +01:00
|
|
|
struct wpa_bss *bss, struct wpa_ssid *ssid);
|
2010-03-13 16:14:41 +01:00
|
|
|
void sme_associate(struct wpa_supplicant *wpa_s, enum wpas_mode mode,
|
|
|
|
const u8 *bssid, u16 auth_type);
|
2009-03-20 21:26:41 +01:00
|
|
|
void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data);
|
|
|
|
int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
|
|
|
|
const u8 *ies, size_t ies_len);
|
2009-04-01 16:10:36 +02:00
|
|
|
void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
|
|
|
|
union wpa_event_data *data);
|
2009-04-23 23:08:24 +02:00
|
|
|
void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
|
|
|
|
union wpa_event_data *data);
|
|
|
|
void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
|
|
|
|
union wpa_event_data *data);
|
2009-12-02 16:26:28 +01:00
|
|
|
void sme_event_disassoc(struct wpa_supplicant *wpa_s,
|
2013-07-21 15:40:40 +02:00
|
|
|
struct disassoc_info *info);
|
2010-12-19 10:58:00 +01:00
|
|
|
void sme_event_unprot_disconnect(struct wpa_supplicant *wpa_s, const u8 *sa,
|
|
|
|
const u8 *da, u16 reason_code);
|
2018-08-06 21:46:35 +02:00
|
|
|
void sme_event_ch_switch(struct wpa_supplicant *wpa_s);
|
2010-12-19 10:58:00 +01:00
|
|
|
void sme_sa_query_rx(struct wpa_supplicant *wpa_s, const u8 *sa,
|
|
|
|
const u8 *data, size_t len);
|
2011-02-24 15:59:46 +01:00
|
|
|
void sme_state_changed(struct wpa_supplicant *wpa_s);
|
|
|
|
void sme_disassoc_while_authenticating(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *prev_pending_bssid);
|
2014-12-29 17:40:10 +01:00
|
|
|
void sme_clear_on_disassoc(struct wpa_supplicant *wpa_s);
|
2011-02-24 15:59:46 +01:00
|
|
|
void sme_deinit(struct wpa_supplicant *wpa_s);
|
2009-03-20 21:26:41 +01:00
|
|
|
|
2019-03-19 13:35:56 +01:00
|
|
|
int sme_proc_obss_scan(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_scan_results *scan_res);
|
2012-05-03 11:13:43 +02:00
|
|
|
void sme_sched_obss_scan(struct wpa_supplicant *wpa_s, int enable);
|
2018-02-01 12:31:28 +01:00
|
|
|
void sme_external_auth_trigger(struct wpa_supplicant *wpa_s,
|
|
|
|
union wpa_event_data *data);
|
|
|
|
void sme_external_auth_mgmt_rx(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *auth_frame, size_t len);
|
2012-05-03 11:13:43 +02:00
|
|
|
|
2009-03-20 21:26:41 +01:00
|
|
|
#else /* CONFIG_SME */
|
|
|
|
|
|
|
|
static inline void sme_authenticate(struct wpa_supplicant *wpa_s,
|
2010-01-02 15:16:02 +01:00
|
|
|
struct wpa_bss *bss,
|
2009-03-20 21:26:41 +01:00
|
|
|
struct wpa_ssid *ssid)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void sme_event_auth(struct wpa_supplicant *wpa_s,
|
|
|
|
union wpa_event_data *data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
|
|
|
|
const u8 *ies, size_t ies_len)
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
2009-04-01 16:10:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
static inline void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
|
|
|
|
union wpa_event_data *data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-04-23 23:08:24 +02:00
|
|
|
static inline void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
|
|
|
|
union wpa_event_data *data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
|
|
|
|
union wpa_event_data *data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-12-02 16:26:28 +01:00
|
|
|
static inline void sme_event_disassoc(struct wpa_supplicant *wpa_s,
|
2013-07-21 15:40:40 +02:00
|
|
|
struct disassoc_info *info)
|
2009-12-02 16:26:28 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-12-19 10:58:00 +01:00
|
|
|
static inline void sme_event_unprot_disconnect(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *sa, const u8 *da,
|
|
|
|
u16 reason_code)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-08-06 21:46:35 +02:00
|
|
|
static inline void sme_event_ch_switch(struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-02-24 15:59:46 +01:00
|
|
|
static inline void sme_state_changed(struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
sme_disassoc_while_authenticating(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *prev_pending_bssid)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-12-29 17:40:10 +01:00
|
|
|
static inline void sme_clear_on_disassoc(struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-02-24 15:59:46 +01:00
|
|
|
static inline void sme_deinit(struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-03-19 13:35:56 +01:00
|
|
|
static inline int sme_proc_obss_scan(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_scan_results *scan_res)
|
2012-05-03 11:13:43 +02:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void sme_sched_obss_scan(struct wpa_supplicant *wpa_s,
|
|
|
|
int enable)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-02-01 12:31:28 +01:00
|
|
|
static inline void sme_external_auth_trigger(struct wpa_supplicant *wpa_s,
|
|
|
|
union wpa_event_data *data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void sme_external_auth_mgmt_rx(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *auth_frame, size_t len)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-03-20 21:26:41 +01:00
|
|
|
#endif /* CONFIG_SME */
|
|
|
|
|
|
|
|
#endif /* SME_H */
|