]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/ap/wps_hostapd.h
HE: Dynamically turn on TWT responder support
[thirdparty/hostap.git] / src / ap / wps_hostapd.h
CommitLineData
ad08c363
JM
1/*
2 * hostapd / WPS integration
bb45b6d7 3 * Copyright (c) 2008-2012, Jouni Malinen <j@w1.fi>
ad08c363 4 *
0f3d578e
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
ad08c363
JM
7 */
8
9#ifndef WPS_HOSTAPD_H
10#define WPS_HOSTAPD_H
11
12#ifdef CONFIG_WPS
13
14int hostapd_init_wps(struct hostapd_data *hapd,
15 struct hostapd_bss_config *conf);
86795546 16int hostapd_init_wps_complete(struct hostapd_data *hapd);
ad08c363 17void hostapd_deinit_wps(struct hostapd_data *hapd);
6deb41e7 18void hostapd_update_wps(struct hostapd_data *hapd);
7b75c301 19void hostapd_wps_eap_completed(struct hostapd_data *hapd);
31fcea93
JM
20int hostapd_wps_add_pin(struct hostapd_data *hapd, const u8 *addr,
21 const char *uuid, const char *pin, int timeout);
d601247c
JM
22int hostapd_wps_button_pushed(struct hostapd_data *hapd,
23 const u8 *p2p_dev_addr);
4c374cde 24int hostapd_wps_cancel(struct hostapd_data *hapd);
2678509d
JM
25int hostapd_wps_get_mib_sta(struct hostapd_data *hapd, const u8 *addr,
26 char *buf, size_t buflen);
5a1cc30f
JM
27void hostapd_wps_ap_pin_disable(struct hostapd_data *hapd);
28const char * hostapd_wps_ap_pin_random(struct hostapd_data *hapd, int timeout);
29const char * hostapd_wps_ap_pin_get(struct hostapd_data *hapd);
30int hostapd_wps_ap_pin_set(struct hostapd_data *hapd, const char *pin,
31 int timeout);
2c8a4eef 32void hostapd_wps_update_ie(struct hostapd_data *hapd);
450eddcf
JM
33int hostapd_wps_config_ap(struct hostapd_data *hapd, const char *ssid,
34 const char *auth, const char *encr, const char *key);
bb45b6d7
JM
35int hostapd_wps_nfc_tag_read(struct hostapd_data *hapd,
36 const struct wpabuf *data);
3cf7a59d
JM
37struct wpabuf * hostapd_wps_nfc_config_token(struct hostapd_data *hapd,
38 int ndef);
6772a90a 39struct wpabuf * hostapd_wps_nfc_hs_cr(struct hostapd_data *hapd, int ndef);
3189ca05
JM
40int hostapd_wps_nfc_report_handover(struct hostapd_data *hapd,
41 const struct wpabuf *req,
42 const struct wpabuf *sel);
ffdaa05a
JM
43struct wpabuf * hostapd_wps_nfc_token_gen(struct hostapd_data *hapd, int ndef);
44int hostapd_wps_nfc_token_enable(struct hostapd_data *hapd);
45void hostapd_wps_nfc_token_disable(struct hostapd_data *hapd);
ad08c363
JM
46
47#else /* CONFIG_WPS */
48
49static inline int hostapd_init_wps(struct hostapd_data *hapd,
50 struct hostapd_bss_config *conf)
51{
52 return 0;
53}
54
55static inline void hostapd_deinit_wps(struct hostapd_data *hapd)
56{
57}
58
86795546
VA
59static inline int hostapd_init_wps_complete(struct hostapd_data *hapd)
60{
61 return 0;
62}
63
6deb41e7
AT
64static inline void hostapd_update_wps(struct hostapd_data *hapd)
65{
66}
67
7b75c301
JM
68static inline void hostapd_wps_eap_completed(struct hostapd_data *hapd)
69{
70}
71
2678509d
JM
72static inline int hostapd_wps_get_mib_sta(struct hostapd_data *hapd,
73 const u8 *addr,
74 char *buf, size_t buflen)
75{
76 return 0;
77}
78
d601247c
JM
79static inline int hostapd_wps_button_pushed(struct hostapd_data *hapd,
80 const u8 *p2p_dev_addr)
05df8cb3
JM
81{
82 return 0;
83}
84
4c374cde
AS
85static inline int hostapd_wps_cancel(struct hostapd_data *hapd)
86{
87 return 0;
88}
89
ad08c363
JM
90#endif /* CONFIG_WPS */
91
92#endif /* WPS_HOSTAPD_H */