wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
wps_hostapd.h
Go to the documentation of this file.
1 
5 #ifndef WPS_HOSTAPD_H
6 #define WPS_HOSTAPD_H
7 
8 #ifdef CONFIG_WPS
9 
10 int hostapd_init_wps(struct hostapd_data *hapd,
11  struct hostapd_bss_config *conf);
12 int hostapd_init_wps_complete(struct hostapd_data *hapd);
13 void hostapd_deinit_wps(struct hostapd_data *hapd);
14 void hostapd_update_wps(struct hostapd_data *hapd);
15 void hostapd_wps_eap_completed(struct hostapd_data *hapd);
16 int hostapd_wps_add_pin(struct hostapd_data *hapd, const u8 *addr,
17  const char *uuid, const char *pin, int timeout);
18 int hostapd_wps_button_pushed(struct hostapd_data *hapd,
19  const u8 *p2p_dev_addr);
20 int hostapd_wps_cancel(struct hostapd_data *hapd);
21 int hostapd_wps_get_mib_sta(struct hostapd_data *hapd, const u8 *addr,
22  char *buf, size_t buflen);
23 void hostapd_wps_ap_pin_disable(struct hostapd_data *hapd);
24 const char * hostapd_wps_ap_pin_random(struct hostapd_data *hapd, int timeout);
25 const char * hostapd_wps_ap_pin_get(struct hostapd_data *hapd);
26 int hostapd_wps_ap_pin_set(struct hostapd_data *hapd, const char *pin,
27  int timeout);
28 void hostapd_wps_update_ie(struct hostapd_data *hapd);
29 int hostapd_wps_config_ap(struct hostapd_data *hapd, const char *ssid,
30  const char *auth, const char *encr, const char *key);
31 int hostapd_wps_nfc_tag_read(struct hostapd_data *hapd,
32  const struct wpabuf *data);
33 struct wpabuf * hostapd_wps_nfc_config_token(struct hostapd_data *hapd,
34  int ndef);
35 struct wpabuf * hostapd_wps_nfc_hs_cr(struct hostapd_data *hapd, int ndef);
36 int hostapd_wps_nfc_report_handover(struct hostapd_data *hapd,
37  const struct wpabuf *req,
38  const struct wpabuf *sel);
39 struct wpabuf * hostapd_wps_nfc_token_gen(struct hostapd_data *hapd, int ndef);
40 int hostapd_wps_nfc_token_enable(struct hostapd_data *hapd);
41 void hostapd_wps_nfc_token_disable(struct hostapd_data *hapd);
42 
43 #else /* CONFIG_WPS */
44 
45 static inline int hostapd_init_wps(struct hostapd_data *hapd,
46  struct hostapd_bss_config *conf)
47 {
48  return 0;
49 }
50 
51 static inline void hostapd_deinit_wps(struct hostapd_data *hapd)
52 {
53 }
54 
55 static inline int hostapd_init_wps_complete(struct hostapd_data *hapd)
56 {
57  return 0;
58 }
59 
60 static inline void hostapd_update_wps(struct hostapd_data *hapd)
61 {
62 }
63 
64 static inline void hostapd_wps_eap_completed(struct hostapd_data *hapd)
65 {
66 }
67 
68 static inline int hostapd_wps_get_mib_sta(struct hostapd_data *hapd,
69  const u8 *addr,
70  char *buf, size_t buflen)
71 {
72  return 0;
73 }
74 
75 static inline int hostapd_wps_button_pushed(struct hostapd_data *hapd,
76  const u8 *p2p_dev_addr)
77 {
78  return 0;
79 }
80 
81 static inline int hostapd_wps_cancel(struct hostapd_data *hapd)
82 {
83  return 0;
84 }
85 
86 #endif /* CONFIG_WPS */
87 
88 #endif /* WPS_HOSTAPD_H */
Definition: wpabuf.h:16
Per-BSS configuration.
Definition: ap_config.h:209
hostapd per-BSS data structure
Definition: hostapd.h:103