p2p_supplicant.h revision 1.1.1.2.4.1.6.1 1 1.1 christos /*
2 1.1 christos * wpa_supplicant - P2P
3 1.1 christos * Copyright (c) 2009-2010, Atheros Communications
4 1.1 christos *
5 1.1.1.2 christos * This software may be distributed under the terms of the BSD license.
6 1.1.1.2 christos * See README for more details.
7 1.1 christos */
8 1.1 christos
9 1.1 christos #ifndef P2P_SUPPLICANT_H
10 1.1 christos #define P2P_SUPPLICANT_H
11 1.1 christos
12 1.1 christos enum p2p_wps_method;
13 1.1 christos struct p2p_go_neg_results;
14 1.1 christos enum p2p_send_action_result;
15 1.1 christos struct p2p_peer_info;
16 1.1.1.2.4.1 snj struct p2p_channels;
17 1.1.1.2.4.1 snj struct wps_event_fail;
18 1.1.1.2.4.1 snj struct p2ps_provision;
19 1.1 christos
20 1.1.1.2.4.1.6.1 snj enum wpas_p2p_channel_update_trig {
21 1.1.1.2.4.1.6.1 snj WPAS_P2P_CHANNEL_UPDATE_ANY,
22 1.1.1.2.4.1.6.1 snj WPAS_P2P_CHANNEL_UPDATE_DRIVER,
23 1.1.1.2.4.1.6.1 snj WPAS_P2P_CHANNEL_UPDATE_STATE_CHANGE,
24 1.1.1.2.4.1.6.1 snj WPAS_P2P_CHANNEL_UPDATE_AVOID,
25 1.1.1.2.4.1.6.1 snj WPAS_P2P_CHANNEL_UPDATE_DISALLOW,
26 1.1.1.2.4.1.6.1 snj WPAS_P2P_CHANNEL_UPDATE_CS,
27 1.1.1.2.4.1.6.1 snj };
28 1.1.1.2.4.1.6.1 snj
29 1.1.1.2.4.1 snj int wpas_p2p_add_p2pdev_interface(struct wpa_supplicant *wpa_s,
30 1.1.1.2.4.1 snj const char *conf_p2p_dev);
31 1.1.1.2.4.1 snj struct wpa_supplicant * wpas_get_p2p_go_iface(struct wpa_supplicant *wpa_s,
32 1.1.1.2.4.1 snj const u8 *ssid, size_t ssid_len);
33 1.1.1.2.4.1 snj struct wpa_supplicant * wpas_get_p2p_client_iface(struct wpa_supplicant *wpa_s,
34 1.1.1.2.4.1 snj const u8 *peer_dev_addr);
35 1.1 christos int wpas_p2p_connect(struct wpa_supplicant *wpa_s, const u8 *peer_addr,
36 1.1 christos const char *pin, enum p2p_wps_method wps_method,
37 1.1.1.2.4.1.6.1 snj int persistent_group, int auto_join, int join, int auth,
38 1.1.1.2.4.1.6.1 snj int go_intent, int freq, unsigned int vht_center_freq2,
39 1.1.1.2.4.1.6.1 snj int persistent_id, int pd, int ht40, int vht,
40 1.1.1.2.4.1.6.1 snj unsigned int vht_chwidth, const u8 *group_ssid,
41 1.1.1.2.4.1.6.1 snj size_t group_ssid_len);
42 1.1.1.2.4.1 snj int wpas_p2p_handle_frequency_conflicts(struct wpa_supplicant *wpa_s,
43 1.1.1.2.4.1 snj int freq, struct wpa_ssid *ssid);
44 1.1 christos int wpas_p2p_group_add(struct wpa_supplicant *wpa_s, int persistent_group,
45 1.1.1.2.4.1.6.1 snj int freq, int vht_center_freq2, int ht40, int vht,
46 1.1.1.2.4.1.6.1 snj int max_oper_chwidth);
47 1.1 christos int wpas_p2p_group_add_persistent(struct wpa_supplicant *wpa_s,
48 1.1 christos struct wpa_ssid *ssid, int addr_allocated,
49 1.1.1.2.4.1.6.1 snj int force_freq, int neg_freq,
50 1.1.1.2.4.1.6.1 snj int vht_center_freq2, int ht40,
51 1.1.1.2.4.1.6.1 snj int vht, int max_oper_chwidth,
52 1.1.1.2.4.1.6.1 snj const struct p2p_channels *channels,
53 1.1.1.2.4.1.6.1 snj int connection_timeout, int force_scan);
54 1.1 christos struct p2p_group * wpas_p2p_group_init(struct wpa_supplicant *wpa_s,
55 1.1.1.2 christos struct wpa_ssid *ssid);
56 1.1.1.2 christos enum wpas_p2p_prov_disc_use {
57 1.1.1.2 christos WPAS_P2P_PD_FOR_GO_NEG,
58 1.1.1.2 christos WPAS_P2P_PD_FOR_JOIN,
59 1.1.1.2.4.1 snj WPAS_P2P_PD_AUTO,
60 1.1.1.2.4.1 snj WPAS_P2P_PD_FOR_ASP
61 1.1.1.2 christos };
62 1.1 christos int wpas_p2p_prov_disc(struct wpa_supplicant *wpa_s, const u8 *peer_addr,
63 1.1.1.2 christos const char *config_method,
64 1.1.1.2.4.1 snj enum wpas_p2p_prov_disc_use use,
65 1.1.1.2.4.1 snj struct p2ps_provision *p2ps_prov);
66 1.1 christos void wpas_send_action_tx_status(struct wpa_supplicant *wpa_s, const u8 *dst,
67 1.1 christos const u8 *data, size_t data_len,
68 1.1 christos enum p2p_send_action_result result);
69 1.1 christos int wpas_p2p_scan_result_text(const u8 *ies, size_t ies_len, char *buf,
70 1.1 christos char *end);
71 1.1 christos enum p2p_discovery_type;
72 1.1 christos int wpas_p2p_find(struct wpa_supplicant *wpa_s, unsigned int timeout,
73 1.1 christos enum p2p_discovery_type type,
74 1.1 christos unsigned int num_req_dev_types, const u8 *req_dev_types,
75 1.1.1.2.4.1 snj const u8 *dev_id, unsigned int search_delay,
76 1.1.1.2.4.1 snj u8 seek_cnt, const char **seek_string, int freq);
77 1.1 christos void wpas_p2p_stop_find(struct wpa_supplicant *wpa_s);
78 1.1 christos int wpas_p2p_listen(struct wpa_supplicant *wpa_s, unsigned int timeout);
79 1.1.1.2.4.1 snj int wpas_p2p_listen_start(struct wpa_supplicant *wpa_s, unsigned int timeout);
80 1.1 christos int wpas_p2p_assoc_req_ie(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
81 1.1 christos u8 *buf, size_t len, int p2p_group);
82 1.1 christos void wpas_p2p_scan_ie(struct wpa_supplicant *wpa_s, struct wpabuf *ies);
83 1.1.1.2 christos u64 wpas_p2p_sd_request(struct wpa_supplicant *wpa_s, const u8 *dst,
84 1.1.1.2 christos const struct wpabuf *tlvs);
85 1.1.1.2.4.1 snj u64 wpas_p2p_sd_request_asp(struct wpa_supplicant *wpa_s, const u8 *dst, u8 id,
86 1.1.1.2.4.1 snj const char *svc_str, const char *info_substr);
87 1.1.1.2 christos u64 wpas_p2p_sd_request_upnp(struct wpa_supplicant *wpa_s, const u8 *dst,
88 1.1.1.2 christos u8 version, const char *query);
89 1.1.1.2 christos u64 wpas_p2p_sd_request_wifi_display(struct wpa_supplicant *wpa_s,
90 1.1.1.2 christos const u8 *dst, const char *role);
91 1.1.1.2 christos int wpas_p2p_sd_cancel_request(struct wpa_supplicant *wpa_s, u64 req);
92 1.1 christos void wpas_p2p_sd_response(struct wpa_supplicant *wpa_s, int freq,
93 1.1 christos const u8 *dst, u8 dialog_token,
94 1.1 christos const struct wpabuf *resp_tlvs);
95 1.1 christos void wpas_p2p_sd_service_update(struct wpa_supplicant *wpa_s);
96 1.1 christos void wpas_p2p_service_flush(struct wpa_supplicant *wpa_s);
97 1.1 christos int wpas_p2p_service_add_bonjour(struct wpa_supplicant *wpa_s,
98 1.1 christos struct wpabuf *query, struct wpabuf *resp);
99 1.1 christos int wpas_p2p_service_del_bonjour(struct wpa_supplicant *wpa_s,
100 1.1 christos const struct wpabuf *query);
101 1.1 christos int wpas_p2p_service_add_upnp(struct wpa_supplicant *wpa_s, u8 version,
102 1.1 christos const char *service);
103 1.1 christos int wpas_p2p_service_del_upnp(struct wpa_supplicant *wpa_s, u8 version,
104 1.1 christos const char *service);
105 1.1.1.2.4.1 snj int wpas_p2p_service_add_asp(struct wpa_supplicant *wpa_s, int auto_accept,
106 1.1.1.2.4.1 snj u32 adv_id, const char *adv_str, u8 svc_state,
107 1.1.1.2.4.1.6.1 snj u16 config_methods, const char *svc_info,
108 1.1.1.2.4.1.6.1 snj const u8 *cpt_priority);
109 1.1.1.2.4.1 snj int wpas_p2p_service_del_asp(struct wpa_supplicant *wpa_s, u32 adv_id);
110 1.1.1.2.4.1.6.1 snj void wpas_p2p_service_flush_asp(struct wpa_supplicant *wpa_s);
111 1.1.1.2.4.1 snj int wpas_p2p_service_p2ps_id_exists(struct wpa_supplicant *wpa_s, u32 adv_id);
112 1.1.1.2.4.1.6.1 snj void wpas_sd_request(void *ctx, int freq, const u8 *sa, u8 dialog_token,
113 1.1.1.2.4.1.6.1 snj u16 update_indic, const u8 *tlvs, size_t tlvs_len);
114 1.1.1.2.4.1.6.1 snj void wpas_sd_response(void *ctx, const u8 *sa, u16 update_indic,
115 1.1.1.2.4.1.6.1 snj const u8 *tlvs, size_t tlvs_len);
116 1.1 christos int wpas_p2p_reject(struct wpa_supplicant *wpa_s, const u8 *addr);
117 1.1 christos int wpas_p2p_invite(struct wpa_supplicant *wpa_s, const u8 *peer_addr,
118 1.1.1.2 christos struct wpa_ssid *ssid, const u8 *go_dev_addr, int freq,
119 1.1.1.2.4.1.6.1 snj int vht_center_freq2, int ht40, int vht,
120 1.1.1.2.4.1.6.1 snj int max_oper_chwidth, int pref_freq);
121 1.1 christos int wpas_p2p_invite_group(struct wpa_supplicant *wpa_s, const char *ifname,
122 1.1 christos const u8 *peer_addr, const u8 *go_dev_addr);
123 1.1 christos int wpas_p2p_presence_req(struct wpa_supplicant *wpa_s, u32 duration1,
124 1.1 christos u32 interval1, u32 duration2, u32 interval2);
125 1.1 christos int wpas_p2p_ext_listen(struct wpa_supplicant *wpa_s, unsigned int period,
126 1.1 christos unsigned int interval);
127 1.1.1.2 christos int wpas_p2p_deauth_notif(struct wpa_supplicant *wpa_s, const u8 *bssid,
128 1.1.1.2 christos u16 reason_code, const u8 *ie, size_t ie_len,
129 1.1.1.2 christos int locally_generated);
130 1.1 christos void wpas_p2p_disassoc_notif(struct wpa_supplicant *wpa_s, const u8 *bssid,
131 1.1.1.2 christos u16 reason_code, const u8 *ie, size_t ie_len,
132 1.1.1.2 christos int locally_generated);
133 1.1 christos int wpas_p2p_set_noa(struct wpa_supplicant *wpa_s, u8 count, int start,
134 1.1 christos int duration);
135 1.1 christos int wpas_p2p_set_cross_connect(struct wpa_supplicant *wpa_s, int enabled);
136 1.1 christos int wpas_p2p_cancel(struct wpa_supplicant *wpa_s);
137 1.1 christos int wpas_p2p_unauthorize(struct wpa_supplicant *wpa_s, const char *addr);
138 1.1 christos int wpas_p2p_disconnect(struct wpa_supplicant *wpa_s);
139 1.1 christos struct wpa_ssid * wpas_p2p_get_persistent(struct wpa_supplicant *wpa_s,
140 1.1 christos const u8 *addr, const u8 *ssid,
141 1.1 christos size_t ssid_len);
142 1.1 christos void wpas_p2p_notify_ap_sta_authorized(struct wpa_supplicant *wpa_s,
143 1.1 christos const u8 *addr);
144 1.1.1.2 christos int wpas_p2p_scan_no_go_seen(struct wpa_supplicant *wpa_s);
145 1.1.1.2 christos int wpas_p2p_get_ht40_mode(struct wpa_supplicant *wpa_s,
146 1.1.1.2 christos struct hostapd_hw_modes *mode, u8 channel);
147 1.1.1.2.4.1 snj int wpas_p2p_get_vht80_center(struct wpa_supplicant *wpa_s,
148 1.1.1.2.4.1 snj struct hostapd_hw_modes *mode, u8 channel);
149 1.1.1.2.4.1.6.1 snj int wpas_p2p_get_vht160_center(struct wpa_supplicant *wpa_s,
150 1.1.1.2.4.1.6.1 snj struct hostapd_hw_modes *mode, u8 channel);
151 1.1.1.2 christos unsigned int wpas_p2p_search_delay(struct wpa_supplicant *wpa_s);
152 1.1.1.2.4.1 snj void wpas_p2p_new_psk_cb(struct wpa_supplicant *wpa_s, const u8 *mac_addr,
153 1.1.1.2.4.1 snj const u8 *p2p_dev_addr,
154 1.1.1.2.4.1 snj const u8 *psk, size_t psk_len);
155 1.1.1.2.4.1 snj void wpas_p2p_remove_client(struct wpa_supplicant *wpa_s, const u8 *peer,
156 1.1.1.2.4.1 snj int iface_addr);
157 1.1.1.2.4.1 snj struct wpabuf * wpas_p2p_nfc_handover_req(struct wpa_supplicant *wpa_s,
158 1.1.1.2.4.1 snj int ndef);
159 1.1.1.2.4.1 snj struct wpabuf * wpas_p2p_nfc_handover_sel(struct wpa_supplicant *wpa_s,
160 1.1.1.2.4.1 snj int ndef, int tag);
161 1.1.1.2.4.1 snj int wpas_p2p_nfc_tag_process(struct wpa_supplicant *wpa_s,
162 1.1.1.2.4.1 snj const struct wpabuf *data, int forced_freq);
163 1.1.1.2.4.1 snj int wpas_p2p_nfc_report_handover(struct wpa_supplicant *wpa_s, int init,
164 1.1.1.2.4.1 snj const struct wpabuf *req,
165 1.1.1.2.4.1 snj const struct wpabuf *sel, int forced_freq);
166 1.1.1.2.4.1 snj int wpas_p2p_nfc_tag_enabled(struct wpa_supplicant *wpa_s, int enabled);
167 1.1.1.2.4.1 snj void wpas_p2p_pbc_overlap_cb(void *eloop_ctx, void *timeout_ctx);
168 1.1.1.2.4.1 snj
169 1.1.1.2.4.1 snj #ifdef CONFIG_P2P
170 1.1.1.2.4.1 snj
171 1.1.1.2.4.1 snj int wpas_p2p_init(struct wpa_global *global, struct wpa_supplicant *wpa_s);
172 1.1.1.2.4.1 snj void wpas_p2p_deinit(struct wpa_supplicant *wpa_s);
173 1.1.1.2.4.1 snj void wpas_p2p_completed(struct wpa_supplicant *wpa_s);
174 1.1.1.2.4.1 snj void wpas_p2p_update_config(struct wpa_supplicant *wpa_s);
175 1.1.1.2.4.1 snj int wpas_p2p_probe_req_rx(struct wpa_supplicant *wpa_s, const u8 *addr,
176 1.1.1.2.4.1 snj const u8 *dst, const u8 *bssid,
177 1.1.1.2.4.1 snj const u8 *ie, size_t ie_len,
178 1.1.1.2.4.1.6.1 snj unsigned int rx_freq, int ssi_signal);
179 1.1.1.2.4.1 snj void wpas_p2p_wps_success(struct wpa_supplicant *wpa_s, const u8 *peer_addr,
180 1.1.1.2.4.1 snj int registrar);
181 1.1.1.2.4.1.6.1 snj
182 1.1.1.2.4.1.6.1 snj void wpas_p2p_update_channel_list(struct wpa_supplicant *wpa_s,
183 1.1.1.2.4.1.6.1 snj enum wpas_p2p_channel_update_trig trig);
184 1.1.1.2.4.1.6.1 snj
185 1.1.1.2.4.1 snj void wpas_p2p_update_best_channels(struct wpa_supplicant *wpa_s,
186 1.1.1.2.4.1 snj int freq_24, int freq_5, int freq_overall);
187 1.1.1.2.4.1 snj void wpas_p2p_rx_action(struct wpa_supplicant *wpa_s, const u8 *da,
188 1.1.1.2.4.1 snj const u8 *sa, const u8 *bssid,
189 1.1.1.2.4.1 snj u8 category, const u8 *data, size_t len, int freq);
190 1.1.1.2.4.1 snj void wpas_p2p_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
191 1.1.1.2.4.1 snj unsigned int freq, unsigned int duration);
192 1.1.1.2.4.1 snj void wpas_p2p_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
193 1.1.1.2.4.1 snj unsigned int freq);
194 1.1.1.2.4.1 snj void wpas_p2p_interface_unavailable(struct wpa_supplicant *wpa_s);
195 1.1.1.2.4.1 snj void wpas_p2p_notif_connected(struct wpa_supplicant *wpa_s);
196 1.1.1.2.4.1 snj void wpas_p2p_notif_disconnected(struct wpa_supplicant *wpa_s);
197 1.1.1.2.4.1 snj int wpas_p2p_notif_pbc_overlap(struct wpa_supplicant *wpa_s);
198 1.1.1.2.4.1 snj int wpas_p2p_4way_hs_failed(struct wpa_supplicant *wpa_s);
199 1.1.1.2.4.1 snj void wpas_p2p_ap_setup_failed(struct wpa_supplicant *wpa_s);
200 1.1.1.2.4.1 snj void wpas_p2p_indicate_state_change(struct wpa_supplicant *wpa_s);
201 1.1.1.2.4.1 snj void wpas_p2p_deinit_iface(struct wpa_supplicant *wpa_s);
202 1.1.1.2.4.1 snj void wpas_p2p_ap_deinit(struct wpa_supplicant *wpa_s);
203 1.1.1.2.4.1 snj void wpas_p2p_network_removed(struct wpa_supplicant *wpa_s,
204 1.1.1.2.4.1 snj struct wpa_ssid *ssid);
205 1.1.1.2.4.1 snj int wpas_p2p_in_progress(struct wpa_supplicant *wpa_s);
206 1.1.1.2.4.1 snj int wpas_p2p_wps_eapol_cb(struct wpa_supplicant *wpa_s);
207 1.1.1.2.4.1 snj void wpas_p2p_wps_failed(struct wpa_supplicant *wpa_s,
208 1.1.1.2.4.1 snj struct wps_event_fail *fail);
209 1.1.1.2.4.1 snj int wpas_p2p_group_remove(struct wpa_supplicant *wpa_s, const char *ifname);
210 1.1.1.2.4.1.6.1 snj int wpas_p2p_lo_start(struct wpa_supplicant *wpa_s, unsigned int freq,
211 1.1.1.2.4.1.6.1 snj unsigned int period, unsigned int interval,
212 1.1.1.2.4.1.6.1 snj unsigned int count);
213 1.1.1.2.4.1.6.1 snj int wpas_p2p_lo_stop(struct wpa_supplicant *wpa_s);
214 1.1.1.2.4.1 snj
215 1.1.1.2.4.1 snj #else /* CONFIG_P2P */
216 1.1.1.2.4.1 snj
217 1.1.1.2.4.1 snj static inline int
218 1.1.1.2.4.1 snj wpas_p2p_init(struct wpa_global *global, struct wpa_supplicant *wpa_s)
219 1.1.1.2.4.1 snj {
220 1.1.1.2.4.1 snj return 0;
221 1.1.1.2.4.1 snj }
222 1.1.1.2.4.1 snj
223 1.1.1.2.4.1 snj static inline void wpas_p2p_deinit(struct wpa_supplicant *wpa_s)
224 1.1.1.2.4.1 snj {
225 1.1.1.2.4.1 snj }
226 1.1.1.2.4.1 snj
227 1.1.1.2.4.1 snj static inline void wpas_p2p_completed(struct wpa_supplicant *wpa_s)
228 1.1.1.2.4.1 snj {
229 1.1.1.2.4.1 snj }
230 1.1.1.2.4.1 snj
231 1.1.1.2.4.1 snj static inline void wpas_p2p_update_config(struct wpa_supplicant *wpa_s)
232 1.1.1.2.4.1 snj {
233 1.1.1.2.4.1 snj }
234 1.1.1.2.4.1 snj
235 1.1.1.2.4.1 snj static inline int wpas_p2p_probe_req_rx(struct wpa_supplicant *wpa_s,
236 1.1.1.2.4.1 snj const u8 *addr,
237 1.1.1.2.4.1 snj const u8 *dst, const u8 *bssid,
238 1.1.1.2.4.1 snj const u8 *ie, size_t ie_len,
239 1.1.1.2.4.1.6.1 snj unsigned int rx_freq, int ssi_signal)
240 1.1.1.2.4.1 snj {
241 1.1.1.2.4.1 snj return 0;
242 1.1.1.2.4.1 snj }
243 1.1.1.2.4.1 snj
244 1.1.1.2.4.1 snj static inline void wpas_p2p_wps_success(struct wpa_supplicant *wpa_s,
245 1.1.1.2.4.1 snj const u8 *peer_addr, int registrar)
246 1.1.1.2.4.1 snj {
247 1.1.1.2.4.1 snj }
248 1.1.1.2.4.1 snj
249 1.1.1.2.4.1.6.1 snj static inline void
250 1.1.1.2.4.1.6.1 snj wpas_p2p_update_channel_list(struct wpa_supplicant *wpa_s,
251 1.1.1.2.4.1.6.1 snj enum wpas_p2p_channel_update_trig trig)
252 1.1.1.2.4.1 snj {
253 1.1.1.2.4.1 snj }
254 1.1.1.2.4.1 snj
255 1.1.1.2.4.1 snj static inline void wpas_p2p_update_best_channels(struct wpa_supplicant *wpa_s,
256 1.1.1.2.4.1 snj int freq_24, int freq_5,
257 1.1.1.2.4.1 snj int freq_overall)
258 1.1.1.2.4.1 snj {
259 1.1.1.2.4.1 snj }
260 1.1.1.2.4.1 snj
261 1.1.1.2.4.1 snj static inline void wpas_p2p_rx_action(struct wpa_supplicant *wpa_s,
262 1.1.1.2.4.1 snj const u8 *da,
263 1.1.1.2.4.1 snj const u8 *sa, const u8 *bssid,
264 1.1.1.2.4.1 snj u8 category, const u8 *data, size_t len,
265 1.1.1.2.4.1 snj int freq)
266 1.1.1.2.4.1 snj {
267 1.1.1.2.4.1 snj }
268 1.1.1.2.4.1 snj
269 1.1.1.2.4.1 snj static inline void wpas_p2p_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
270 1.1.1.2.4.1 snj unsigned int freq,
271 1.1.1.2.4.1 snj unsigned int duration)
272 1.1.1.2.4.1 snj {
273 1.1.1.2.4.1 snj }
274 1.1.1.2.4.1 snj
275 1.1.1.2.4.1 snj static inline void
276 1.1.1.2.4.1 snj wpas_p2p_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
277 1.1.1.2.4.1 snj unsigned int freq)
278 1.1.1.2.4.1 snj {
279 1.1.1.2.4.1 snj }
280 1.1.1.2.4.1 snj
281 1.1.1.2.4.1 snj static inline void wpas_p2p_interface_unavailable(struct wpa_supplicant *wpa_s)
282 1.1.1.2.4.1 snj {
283 1.1.1.2.4.1 snj }
284 1.1.1.2.4.1 snj
285 1.1.1.2.4.1 snj static inline void wpas_p2p_notif_connected(struct wpa_supplicant *wpa_s)
286 1.1.1.2.4.1 snj {
287 1.1.1.2.4.1 snj }
288 1.1.1.2.4.1 snj
289 1.1.1.2.4.1 snj static inline void wpas_p2p_notif_disconnected(struct wpa_supplicant *wpa_s)
290 1.1.1.2.4.1 snj {
291 1.1.1.2.4.1 snj }
292 1.1.1.2.4.1 snj
293 1.1.1.2.4.1 snj static inline int wpas_p2p_notif_pbc_overlap(struct wpa_supplicant *wpa_s)
294 1.1.1.2.4.1 snj {
295 1.1.1.2.4.1 snj return 0;
296 1.1.1.2.4.1 snj }
297 1.1.1.2.4.1 snj
298 1.1.1.2.4.1 snj static inline int wpas_p2p_4way_hs_failed(struct wpa_supplicant *wpa_s)
299 1.1.1.2.4.1 snj {
300 1.1.1.2.4.1 snj return 0;
301 1.1.1.2.4.1 snj }
302 1.1.1.2.4.1 snj
303 1.1.1.2.4.1 snj static inline void wpas_p2p_ap_setup_failed(struct wpa_supplicant *wpa_s)
304 1.1.1.2.4.1 snj {
305 1.1.1.2.4.1 snj }
306 1.1.1.2.4.1 snj
307 1.1.1.2.4.1 snj static inline void wpas_p2p_indicate_state_change(struct wpa_supplicant *wpa_s)
308 1.1.1.2.4.1 snj {
309 1.1.1.2.4.1 snj }
310 1.1.1.2.4.1 snj
311 1.1.1.2.4.1 snj static inline void wpas_p2p_deinit_iface(struct wpa_supplicant *wpa_s)
312 1.1.1.2.4.1 snj {
313 1.1.1.2.4.1 snj }
314 1.1.1.2.4.1 snj
315 1.1.1.2.4.1 snj static inline void wpas_p2p_ap_deinit(struct wpa_supplicant *wpa_s)
316 1.1.1.2.4.1 snj {
317 1.1.1.2.4.1 snj }
318 1.1.1.2.4.1 snj
319 1.1.1.2.4.1 snj static inline void wpas_p2p_network_removed(struct wpa_supplicant *wpa_s,
320 1.1.1.2.4.1 snj struct wpa_ssid *ssid)
321 1.1.1.2.4.1 snj {
322 1.1.1.2.4.1 snj }
323 1.1.1.2.4.1 snj
324 1.1.1.2.4.1 snj static inline int wpas_p2p_in_progress(struct wpa_supplicant *wpa_s)
325 1.1.1.2.4.1 snj {
326 1.1.1.2.4.1 snj return 0;
327 1.1.1.2.4.1 snj }
328 1.1.1.2.4.1 snj
329 1.1.1.2.4.1 snj static inline int wpas_p2p_wps_eapol_cb(struct wpa_supplicant *wpa_s)
330 1.1.1.2.4.1 snj {
331 1.1.1.2.4.1 snj return 0;
332 1.1.1.2.4.1 snj }
333 1.1.1.2.4.1 snj
334 1.1.1.2.4.1 snj static inline void wpas_p2p_wps_failed(struct wpa_supplicant *wpa_s,
335 1.1.1.2.4.1 snj struct wps_event_fail *fail)
336 1.1.1.2.4.1 snj {
337 1.1.1.2.4.1 snj }
338 1.1.1.2.4.1 snj
339 1.1.1.2.4.1 snj static inline int wpas_p2p_group_remove(struct wpa_supplicant *wpa_s,
340 1.1.1.2.4.1 snj const char *ifname)
341 1.1.1.2.4.1 snj {
342 1.1.1.2.4.1 snj return 0;
343 1.1.1.2.4.1 snj }
344 1.1.1.2.4.1 snj
345 1.1.1.2.4.1 snj #endif /* CONFIG_P2P */
346 1.1 christos
347 1.1 christos #endif /* P2P_SUPPLICANT_H */
348