Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PREAUTH_H
00016 #define PREAUTH_H
00017
00018 struct wpa_scan_results;
00019
00020 #if defined(IEEE8021X_EAPOL) && !defined(CONFIG_NO_WPA2)
00021
00022 void pmksa_candidate_free(struct wpa_sm *sm);
00023 int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
00024 struct eap_peer_config *eap_conf);
00025 void rsn_preauth_deinit(struct wpa_sm *sm);
00026 int rsn_preauth_scan_results(struct wpa_sm *sm);
00027 void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
00028 const u8 *ssid, const u8 *rsn);
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
00056 static inline int rsn_preauth_scan_results(struct wpa_sm *sm)
00057 {
00058 return -1;
00059 }
00060
00061 static inline void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
00062 const u8 *ssid, const u8 *rsn)
00063 {
00064 }
00065
00066 static inline void pmksa_candidate_add(struct wpa_sm *sm,
00067 const u8 *bssid,
00068 int prio, int preauth)
00069 {
00070 }
00071
00072 static inline int rsn_preauth_get_status(struct wpa_sm *sm, char *buf,
00073 size_t buflen, int verbose)
00074 {
00075 return 0;
00076 }
00077
00078 static inline int rsn_preauth_in_progress(struct wpa_sm *sm)
00079 {
00080 return 0;
00081 }
00082
00083 #endif
00084
00085 #endif