Lines Matching defs:p2p
53 void p2p_expire_peers(struct p2p_data *p2p) in p2p_expire_peers()
141 const char * p2p_get_state_txt(struct p2p_data *p2p) in p2p_get_state_txt()
147 struct p2ps_advertisement * p2p_get_p2ps_adv_list(struct p2p_data *p2p) in p2p_get_p2ps_adv_list()
153 void p2p_set_intended_addr(struct p2p_data *p2p, const u8 *intended_addr) in p2p_set_intended_addr()
160 u16 p2p_get_provisioning_info(struct p2p_data *p2p, const u8 *addr) in p2p_get_provisioning_info()
175 void p2p_clear_provisioning_info(struct p2p_data *p2p, const u8 *addr) in p2p_clear_provisioning_info()
188 void p2p_set_state(struct p2p_data *p2p, int new_state) in p2p_set_state()
204 void p2p_set_timeout(struct p2p_data *p2p, unsigned int sec, unsigned int usec) in p2p_set_timeout()
213 void p2p_clear_timeout(struct p2p_data *p2p) in p2p_clear_timeout()
220 void p2p_go_neg_failed(struct p2p_data *p2p, int status) in p2p_go_neg_failed()
253 static void p2p_listen_in_find(struct p2p_data *p2p, int dev_disc) in p2p_listen_in_find()
308 int p2p_listen(struct p2p_data *p2p, unsigned int timeout) in p2p_listen()
360 static void p2p_device_clear_reported(struct p2p_data *p2p) in p2p_device_clear_reported()
376 struct p2p_device * p2p_get_device(struct p2p_data *p2p, const u8 *addr) in p2p_get_device()
393 struct p2p_device * p2p_get_device_interface(struct p2p_data *p2p, in p2p_get_device_interface()
414 static struct p2p_device * p2p_create_device(struct p2p_data *p2p, in p2p_create_device()
461 static int p2p_add_group_clients(struct p2p_data *p2p, const u8 *go_dev_addr, in p2p_add_group_clients()
543 static void p2p_copy_wps_info(struct p2p_data *p2p, struct p2p_device *dev, in p2p_copy_wps_info()
706 int p2p_add_device(struct p2p_data *p2p, const u8 *addr, int freq, in p2p_add_device()
902 static void p2p_device_free(struct p2p_data *p2p, struct p2p_device *dev) in p2p_device_free()
938 static int p2p_get_next_prog_freq(struct p2p_data *p2p) in p2p_get_next_prog_freq()
992 static void p2p_search(struct p2p_data *p2p) in p2p_search()
1026 struct p2p_data *p2p = eloop_ctx; in p2p_find_timeout() local
1032 void p2p_notify_scan_trigger_status(struct p2p_data *p2p, int status) in p2p_notify_scan_trigger_status()
1048 static int p2p_run_after_scan(struct p2p_data *p2p) in p2p_run_after_scan()
1097 struct p2p_data *p2p = eloop_ctx; in p2p_scan_timeout() local
1109 static void p2p_free_req_dev_types(struct p2p_data *p2p) in p2p_free_req_dev_types()
1117 static int p2ps_gen_hash(struct p2p_data *p2p, const char *str, u8 *hash) in p2ps_gen_hash()
1152 int p2p_find(struct p2p_data *p2p, unsigned int timeout, in p2p_find()
1286 void p2p_stop_find_for_freq(struct p2p_data *p2p, int freq) in p2p_stop_find_for_freq()
1309 void p2p_stop_listen_for_freq(struct p2p_data *p2p, int freq) in p2p_stop_listen_for_freq()
1332 void p2p_stop_listen(struct p2p_data *p2p) in p2p_stop_listen()
1344 void p2p_stop_find(struct p2p_data *p2p) in p2p_stop_find()
1351 static int p2p_prepare_channel_pref(struct p2p_data *p2p, in p2p_prepare_channel_pref()
1390 static void p2p_prepare_channel_best(struct p2p_data *p2p) in p2p_prepare_channel_best()
1482 int p2p_prepare_channel(struct p2p_data *p2p, struct p2p_device *dev, in p2p_prepare_channel()
1535 int p2p_connect(struct p2p_data *p2p, const u8 *peer_addr, in p2p_connect()
1648 int p2p_authorize(struct p2p_data *p2p, const u8 *peer_addr, in p2p_authorize()
1699 void p2p_add_dev_info(struct p2p_data *p2p, const u8 *addr, in p2p_add_dev_info()
1757 void p2p_build_ssid(struct p2p_data *p2p, u8 *ssid, size_t *ssid_len) in p2p_build_ssid()
1767 int p2p_go_params(struct p2p_data *p2p, struct p2p_go_neg_results *params) in p2p_go_params()
1782 void p2p_go_complete(struct p2p_data *p2p, struct p2p_device *peer) in p2p_go_complete()
1846 static void p2p_rx_p2p_action(struct p2p_data *p2p, const u8 *sa, in p2p_rx_p2p_action()
1892 static void p2p_rx_action_public(struct p2p_data *p2p, const u8 *da, in p2p_rx_action_public()
1929 void p2p_rx_action(struct p2p_data *p2p, const u8 *da, const u8 *sa, in p2p_rx_action()
1978 struct p2p_data *p2p = eloop_ctx; in p2p_go_neg_start() local
1998 struct p2p_data *p2p = eloop_ctx; in p2p_invite_start() local
2011 static void p2p_add_dev_from_probe_req(struct p2p_data *p2p, const u8 *addr, in p2p_add_dev_from_probe_req()
2092 struct p2p_device * p2p_add_dev_from_go_neg_req(struct p2p_data *p2p, in p2p_add_dev_from_go_neg_req()
2148 int p2p_match_dev_type(struct p2p_data *p2p, struct wpabuf *wps) in p2p_match_dev_type()
2175 struct wpabuf * p2p_build_probe_resp_ies(struct p2p_data *p2p, in p2p_build_probe_resp_ies()
2238 static int p2p_service_find_asp(struct p2p_data *p2p, const u8 *hash) in p2p_service_find_asp()
2264 p2p_reply_probe(struct p2p_data *p2p, const u8 *addr, const u8 *dst, in p2p_reply_probe()
2471 p2p_probe_req_rx(struct p2p_data *p2p, const u8 *addr, const u8 *dst, in p2p_probe_req_rx()
2519 static int p2p_assoc_req_ie_wlan_ap(struct p2p_data *p2p, const u8 *bssid, in p2p_assoc_req_ie_wlan_ap()
2580 int p2p_assoc_req_ie(struct p2p_data *p2p, const u8 *bssid, u8 *buf, in p2p_assoc_req_ie()
2659 p2p_service_p2ps_id(struct p2p_data *p2p, u32 adv_id) in p2p_service_p2ps_id()
2677 int p2p_service_del_asp(struct p2p_data *p2p, u32 adv_id) in p2p_service_del_asp()
2702 int p2p_service_add_asp(struct p2p_data *p2p, int auto_accept, u32 adv_id, in p2p_service_add_asp()
2791 void p2p_service_flush_asp(struct p2p_data *p2p) in p2p_service_flush_asp()
2844 static void p2p_clear_go_neg(struct p2p_data *p2p) in p2p_clear_go_neg()
2852 void p2p_wps_success_cb(struct p2p_data *p2p, const u8 *mac_addr) in p2p_wps_success_cb()
2875 void p2p_group_formation_failed(struct p2p_data *p2p) in p2p_group_formation_failed()
2891 struct p2p_data *p2p; in p2p_init() local
2953 void p2p_deinit(struct p2p_data *p2p) in p2p_deinit()
2992 void p2p_flush(struct p2p_data *p2p) in p2p_flush()
3010 int p2p_unauthorize(struct p2p_data *p2p, const u8 *addr) in p2p_unauthorize()
3041 int p2p_set_dev_name(struct p2p_data *p2p, const char *dev_name) in p2p_set_dev_name()
3054 int p2p_set_manufacturer(struct p2p_data *p2p, const char *manufacturer) in p2p_set_manufacturer()
3068 int p2p_set_model_name(struct p2p_data *p2p, const char *model_name) in p2p_set_model_name()
3082 int p2p_set_model_number(struct p2p_data *p2p, const char *model_number) in p2p_set_model_number()
3096 int p2p_set_serial_number(struct p2p_data *p2p, const char *serial_number) in p2p_set_serial_number()
3110 void p2p_set_config_methods(struct p2p_data *p2p, u16 config_methods) in p2p_set_config_methods()
3116 void p2p_set_uuid(struct p2p_data *p2p, const u8 *uuid) in p2p_set_uuid()
3122 int p2p_set_pri_dev_type(struct p2p_data *p2p, const u8 *pri_dev_type) in p2p_set_pri_dev_type()
3129 int p2p_set_sec_dev_types(struct p2p_data *p2p, const u8 dev_types[][8], in p2p_set_sec_dev_types()
3140 void p2p_remove_wps_vendor_extensions(struct p2p_data *p2p) in p2p_remove_wps_vendor_extensions()
3151 int p2p_add_wps_vendor_extension(struct p2p_data *p2p, in p2p_add_wps_vendor_extension()
3174 int p2p_set_country(struct p2p_data *p2p, const char *country) in p2p_set_country()
3181 static int p2p_pre_find_operation(struct p2p_data *p2p, struct p2p_device *dev) in p2p_pre_find_operation()
3211 void p2p_continue_find(struct p2p_data *p2p) in p2p_continue_find()
3258 static void p2p_sd_cb(struct p2p_data *p2p, int success) in p2p_sd_cb()
3312 static void p2p_retry_pd(struct p2p_data *p2p) in p2p_retry_pd()
3340 static void p2p_prov_disc_cb(struct p2p_data *p2p, int success) in p2p_prov_disc_cb()
3426 static int p2p_check_after_scan_tx_continuation(struct p2p_data *p2p) in p2p_check_after_scan_tx_continuation()
3443 static void p2p_prov_disc_resp_cb(struct p2p_data *p2p, int success) in p2p_prov_disc_resp_cb()
3471 int p2p_scan_res_handler(struct p2p_data *p2p, const u8 *bssid, int freq, in p2p_scan_res_handler()
3498 void p2p_scan_res_handled(struct p2p_data *p2p) in p2p_scan_res_handled()
3513 void p2p_scan_ie(struct p2p_data *p2p, struct wpabuf *ies, const u8 *dev_id, in p2p_scan_ie()
3559 size_t p2p_scan_ie_buf_len(struct p2p_data *p2p) in p2p_scan_ie_buf_len()
3582 static void p2p_go_neg_req_cb(struct p2p_data *p2p, int success) in p2p_go_neg_req_cb()
3637 static void p2p_go_neg_resp_cb(struct p2p_data *p2p, int success) in p2p_go_neg_resp_cb()
3650 static void p2p_go_neg_resp_failure_cb(struct p2p_data *p2p, int success, in p2p_go_neg_resp_failure_cb()
3672 static void p2p_go_neg_conf_cb(struct p2p_data *p2p, in p2p_go_neg_conf_cb()
3737 void p2p_send_action_cb(struct p2p_data *p2p, unsigned int freq, const u8 *dst, in p2p_send_action_cb()
3801 void p2p_listen_cb(struct p2p_data *p2p, unsigned int freq, in p2p_listen_cb()
3835 int p2p_listen_end(struct p2p_data *p2p, unsigned int freq) in p2p_listen_end()
3890 static void p2p_timeout_connect(struct p2p_data *p2p) in p2p_timeout_connect()
3917 static void p2p_timeout_connect_listen(struct p2p_data *p2p) in p2p_timeout_connect_listen()
3938 static void p2p_timeout_wait_peer_connect(struct p2p_data *p2p) in p2p_timeout_wait_peer_connect()
3950 static void p2p_timeout_wait_peer_idle(struct p2p_data *p2p) in p2p_timeout_wait_peer_idle()
3965 static void p2p_timeout_sd_during_find(struct p2p_data *p2p) in p2p_timeout_sd_during_find()
3976 static void p2p_timeout_prov_disc_during_find(struct p2p_data *p2p) in p2p_timeout_prov_disc_during_find()
3984 static void p2p_timeout_prov_disc_req(struct p2p_data *p2p) in p2p_timeout_prov_disc_req()
4034 static void p2p_timeout_invite(struct p2p_data *p2p) in p2p_timeout_invite()
4051 static void p2p_timeout_invite_listen(struct p2p_data *p2p) in p2p_timeout_invite_listen()
4073 struct p2p_data *p2p = eloop_ctx; in p2p_state_timeout() local
4147 int p2p_reject(struct p2p_data *p2p, const u8 *peer_addr) in p2p_reject()
4200 const struct p2p_peer_info * p2p_get_peer_info(struct p2p_data *p2p, in p2p_get_peer_info()
4350 int p2p_peer_known(struct p2p_data *p2p, const u8 *addr) in p2p_peer_known()
4356 void p2p_set_client_discoverability(struct p2p_data *p2p, int enabled) in p2p_set_client_discoverability()
4404 int p2p_presence_req(struct p2p_data *p2p, const u8 *go_interface_addr, in p2p_presence_req()
4459 static void p2p_process_presence_req(struct p2p_data *p2p, const u8 *da, in p2p_process_presence_req()
4525 static void p2p_process_presence_resp(struct p2p_data *p2p, const u8 *da, in p2p_process_presence_resp()
4565 struct p2p_data *p2p = eloop_ctx; in p2p_ext_listen_timeout() local
4609 int p2p_ext_listen(struct p2p_data *p2p, unsigned int period, in p2p_ext_listen()
4643 void p2p_deauth_notif(struct p2p_data *p2p, const u8 *bssid, u16 reason_code, in p2p_deauth_notif()
4667 void p2p_disassoc_notif(struct p2p_data *p2p, const u8 *bssid, u16 reason_code, in p2p_disassoc_notif()
4691 void p2p_set_managed_oper(struct p2p_data *p2p, int enabled) in p2p_set_managed_oper()
4703 int p2p_config_get_random_social(struct p2p_config *p2p, u8 *op_class, in p2p_config_get_random_social()
4710 int p2p_set_listen_channel(struct p2p_data *p2p, u8 reg_class, u8 channel, in p2p_set_listen_channel()
4744 u8 p2p_get_listen_channel(struct p2p_data *p2p) in p2p_get_listen_channel()
4750 int p2p_set_ssid_postfix(struct p2p_data *p2p, const u8 *postfix, size_t len) in p2p_set_ssid_postfix()
4765 int p2p_set_oper_channel(struct p2p_data *p2p, u8 op_reg_class, u8 op_channel, in p2p_set_oper_channel()
4780 int p2p_set_pref_chan(struct p2p_data *p2p, unsigned int num_pref_chan, in p2p_set_pref_chan()
4802 int p2p_set_no_go_freq(struct p2p_data *p2p, in p2p_set_no_go_freq()
4827 int p2p_get_interface_addr(struct p2p_data *p2p, const u8 *dev_addr, in p2p_get_interface_addr()
4838 int p2p_get_dev_addr(struct p2p_data *p2p, const u8 *iface_addr, in p2p_get_dev_addr()
4849 void p2p_set_peer_filter(struct p2p_data *p2p, const u8 *addr) in p2p_set_peer_filter()
4860 void p2p_set_cross_connect(struct p2p_data *p2p, int enabled) in p2p_set_cross_connect()
4870 int p2p_get_oper_freq(struct p2p_data *p2p, const u8 *iface_addr) in p2p_get_oper_freq()
4881 void p2p_set_intra_bss_dist(struct p2p_data *p2p, int enabled) in p2p_set_intra_bss_dist()
4889 void p2p_update_channel_list(struct p2p_data *p2p, in p2p_update_channel_list()
4902 int p2p_send_action(struct p2p_data *p2p, unsigned int freq, const u8 *dst, in p2p_send_action()
4931 void p2p_set_best_channels(struct p2p_data *p2p, int freq_24, int freq_5, in p2p_set_best_channels()
4942 void p2p_set_own_freq_preference(struct p2p_data *p2p, int freq) in p2p_set_own_freq_preference()
4949 const u8 * p2p_get_go_neg_peer(struct p2p_data *p2p) in p2p_get_go_neg_peer()
4958 p2p_get_peer_found(struct p2p_data *p2p, const u8 *addr, int next) in p2p_get_peer_found()
4998 int p2p_in_progress(struct p2p_data *p2p) in p2p_in_progress()
5008 void p2p_set_config_timeout(struct p2p_data *p2p, u8 go_timeout, in p2p_set_config_timeout()
5020 static void p2p_update_wfd_ie_groups(struct p2p_data *p2p) in p2p_update_wfd_ie_groups()
5032 int p2p_set_wfd_ie_beacon(struct p2p_data *p2p, struct wpabuf *ie) in p2p_set_wfd_ie_beacon()
5041 int p2p_set_wfd_ie_probe_req(struct p2p_data *p2p, struct wpabuf *ie) in p2p_set_wfd_ie_probe_req()
5049 int p2p_set_wfd_ie_probe_resp(struct p2p_data *p2p, struct wpabuf *ie) in p2p_set_wfd_ie_probe_resp()
5058 int p2p_set_wfd_ie_assoc_req(struct p2p_data *p2p, struct wpabuf *ie) in p2p_set_wfd_ie_assoc_req()
5066 int p2p_set_wfd_ie_invitation(struct p2p_data *p2p, struct wpabuf *ie) in p2p_set_wfd_ie_invitation()
5074 int p2p_set_wfd_ie_prov_disc_req(struct p2p_data *p2p, struct wpabuf *ie) in p2p_set_wfd_ie_prov_disc_req()
5082 int p2p_set_wfd_ie_prov_disc_resp(struct p2p_data *p2p, struct wpabuf *ie) in p2p_set_wfd_ie_prov_disc_resp()
5090 int p2p_set_wfd_ie_go_neg(struct p2p_data *p2p, struct wpabuf *ie) in p2p_set_wfd_ie_go_neg()
5098 int p2p_set_wfd_dev_info(struct p2p_data *p2p, const struct wpabuf *elem) in p2p_set_wfd_dev_info()
5112 int p2p_set_wfd_assoc_bssid(struct p2p_data *p2p, const struct wpabuf *elem) in p2p_set_wfd_assoc_bssid()
5126 int p2p_set_wfd_coupled_sink_info(struct p2p_data *p2p, in p2p_set_wfd_coupled_sink_info()
5143 int p2p_set_disc_int(struct p2p_data *p2p, int min_disc_int, int max_disc_int, in p2p_set_disc_int()
5159 void p2p_dbg(struct p2p_data *p2p, const char *fmt, ...) in p2p_dbg()
5175 void p2p_info(struct p2p_data *p2p, const char *fmt, ...) in p2p_info()
5191 void p2p_err(struct p2p_data *p2p, const char *fmt, ...) in p2p_err()
5207 void p2p_loop_on_known_peers(struct p2p_data *p2p, in p2p_loop_on_known_peers()
5222 static struct wpabuf * p2p_build_nfc_handover(struct p2p_data *p2p, in p2p_build_nfc_handover()
5284 struct wpabuf * p2p_build_nfc_handover_req(struct p2p_data *p2p, in p2p_build_nfc_handover_req()
5294 struct wpabuf * p2p_build_nfc_handover_sel(struct p2p_data *p2p, in p2p_build_nfc_handover_sel()
5304 int p2p_process_nfc_connection_handover(struct p2p_data *p2p, in p2p_process_nfc_connection_handover()
5430 void p2p_set_authorized_oob_dev_pw_id(struct p2p_data *p2p, u16 dev_pw_id, in p2p_set_authorized_oob_dev_pw_id()
5451 int p2p_set_passphrase_len(struct p2p_data *p2p, unsigned int len) in p2p_set_passphrase_len()
5460 void p2p_set_vendor_elems(struct p2p_data *p2p, struct wpabuf **vendor_elem) in p2p_set_vendor_elems()
5468 struct p2p_data *p2p = eloop_ctx; in p2p_go_neg_wait_timeout() local
5476 void p2p_set_own_pref_freq_list(struct p2p_data *p2p, in p2p_set_own_pref_freq_list()