preauth.h
Go to the documentation of this file.00001
00016 #ifndef PREAUTH_H
00017 #define PREAUTH_H
00018
00019 struct wpa_scan_results;
00020
00021 #if defined(IEEE8021X_EAPOL) && !defined(CONFIG_NO_WPA2)
00022
00023 void pmksa_candidate_free(struct wpa_sm *sm);
00024 int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
00025 struct eap_peer_config *eap_conf);
00026 void rsn_preauth_deinit(struct wpa_sm *sm);
00027 void rsn_preauth_scan_results(struct wpa_sm *sm,
00028 struct wpa_scan_results *results);
00029 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
00030 int prio, int preauth);
00031 void rsn_preauth_candidate_process(struct wpa_sm *sm);
00032 int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
00033 int verbose);
00034 int rsn_preauth_in_progress(struct wpa_sm *sm);
00035
00036 #else
00037
00038 static inline void pmksa_candidate_free(struct wpa_sm *sm)
00039 {
00040 }
00041
00042 static inline void rsn_preauth_candidate_process(struct wpa_sm *sm)
00043 {
00044 }
00045
00046 static inline int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
00047 struct eap_peer_config *eap_conf)
00048 {
00049 return -1;
00050 }
00051
00052 static inline void rsn_preauth_deinit(struct wpa_sm *sm)
00053 {
00054 }
00055 static inline void rsn_preauth_scan_results(struct wpa_sm *sm,
00056 struct wpa_scan_results *results)
00057 {
00058 }
00059
00060 static inline void pmksa_candidate_add(struct wpa_sm *sm,
00061 const u8 *bssid,
00062 int prio, int preauth)
00063 {
00064 }
00065
00066 static inline int rsn_preauth_get_status(struct wpa_sm *sm, char *buf,
00067 size_t buflen, int verbose)
00068 {
00069 return 0;
00070 }
00071
00072 static inline int rsn_preauth_in_progress(struct wpa_sm *sm)
00073 {
00074 return 0;
00075 }
00076
00077 #endif
00078
00079 #endif
00080