sme.h
Go to the documentation of this file.
00001 /*
00002  * wpa_supplicant - SME
00003  * Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #ifndef SME_H
00016 #define SME_H
00017 
00018 #ifdef CONFIG_SME
00019 
00020 void sme_authenticate(struct wpa_supplicant *wpa_s,
00021                       struct wpa_bss *bss, struct wpa_ssid *ssid);
00022 void sme_associate(struct wpa_supplicant *wpa_s, enum wpas_mode mode,
00023                    const u8 *bssid, u16 auth_type);
00024 void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data);
00025 int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
00026                       const u8 *ies, size_t ies_len);
00027 void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
00028                             union wpa_event_data *data);
00029 void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
00030                               union wpa_event_data *data);
00031 void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
00032                                union wpa_event_data *data);
00033 void sme_event_disassoc(struct wpa_supplicant *wpa_s,
00034                         union wpa_event_data *data);
00035 
00036 #else /* CONFIG_SME */
00037 
00038 static inline void sme_authenticate(struct wpa_supplicant *wpa_s,
00039                                     struct wpa_bss *bss,
00040                                     struct wpa_ssid *ssid)
00041 {
00042 }
00043 
00044 static inline void sme_event_auth(struct wpa_supplicant *wpa_s,
00045                                   union wpa_event_data *data)
00046 {
00047 }
00048 
00049 static inline int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
00050                                     const u8 *ies, size_t ies_len)
00051 {
00052         return -1;
00053 }
00054 
00055 
00056 static inline void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
00057                                           union wpa_event_data *data)
00058 {
00059 }
00060 
00061 static inline void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
00062                                             union wpa_event_data *data)
00063 {
00064 }
00065 
00066 static inline void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
00067                                              union wpa_event_data *data)
00068 {
00069 }
00070 
00071 static inline void sme_event_disassoc(struct wpa_supplicant *wpa_s,
00072                                       union wpa_event_data *data)
00073 {
00074 }
00075 
00076 #endif /* CONFIG_SME */
00077 
00078 #endif /* SME_H */


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:21