Lines Matching refs:p2p

213 		if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq))  in wpas_p2p_valid_oper_freqs()
228 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_set_own_freq_preference()
241 p2p_set_own_freq_preference(wpa_s->global->p2p, freq); in wpas_p2p_set_own_freq_preference()
256 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_scan_res_handler()
284 if (p2p_scan_res_handler(wpa_s->global->p2p, bss->bssid, in wpas_p2p_scan_res_handler()
290 p2p_scan_res_handled(wpa_s->global->p2p); in wpas_p2p_scan_res_handler()
322 p2p_notify_scan_trigger_status(wpa_s->global->p2p, ret); in wpas_p2p_trigger_scan_cb()
326 p2p_notify_scan_trigger_status(wpa_s->global->p2p, ret); in wpas_p2p_trigger_scan_cb()
347 return p2p_supported_freq(wpa_s->global->p2p, freq); in wpas_p2p_search_social_channel()
364 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_scan()
385 wpa_s->wps->dev.p2p = 1; in wpas_p2p_scan()
426 if (p2p_supported_freq(wpa_s->global->p2p, freq)) in wpas_p2p_scan()
432 ielen = p2p_scan_ie_buf_len(wpa_s->global->p2p); in wpas_p2p_scan()
442 p2p_scan_ie(wpa_s->global->p2p, ies, dev_id, bands); in wpas_p2p_scan()
813 p2p_set_intended_addr(wpa_s->global->p2p, in p2ps_group_capability()
825 p2p_set_intended_addr(wpa_s->global->p2p, in p2ps_group_capability()
1030 struct wpabuf *p2p; in wpas_p2p_persistent_group() local
1046 if (p2p_get_interface_addr(wpa_s->global->p2p, bssid, in wpas_p2p_persistent_group()
1057 p2p = wpa_bss_get_vendor_ie_multi(bss, P2P_IE_VENDOR_TYPE); in wpas_p2p_persistent_group()
1058 if (p2p == NULL) in wpas_p2p_persistent_group()
1059 p2p = wpa_bss_get_vendor_ie_multi_beacon(bss, in wpas_p2p_persistent_group()
1061 if (p2p == NULL) { in wpas_p2p_persistent_group()
1073 group_capab = p2p_get_group_capab(p2p); in wpas_p2p_persistent_group()
1074 addr = p2p_get_go_dev_addr(p2p); in wpas_p2p_persistent_group()
1083 wpabuf_free(p2p); in wpas_p2p_persistent_group()
1490 if (wpa_s->global->p2p == NULL || wpa_s->global->p2p_disabled) in wpas_p2p_send_action_tx_status()
1505 p2p_send_action_cb(wpa_s->global->p2p, freq, dst, src, bssid, res); in wpas_p2p_send_action_tx_status()
1708 MAC2STR(psk->addr), psk->p2p); in wpas_p2p_add_psk_list()
1713 if (psk->p2p) in wpas_p2p_add_psk_list()
2213 if (wpa_s->global->p2p) in wpas_p2p_group_formation_failed()
2214 p2p_group_formation_failed(wpa_s->global->p2p); in wpas_p2p_group_formation_failed()
2885 if (p2p_supported_freq(wpa_s->global->p2p, freqs[c].freq)) in wpas_p2p_pick_best_used_freq()
2893 if (!p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_pick_best_used_freq()
3622 if (o->p2p == NO_P2P_SUPP) in wpas_p2p_setup_channels()
3683 if (o->p2p == NO_P2P_SUPP) in wpas_p2p_get_ht40_mode()
4440 struct p2p_config p2p; in wpas_p2p_init() local
4449 if (global->p2p) in wpas_p2p_init()
4458 os_memset(&p2p, 0, sizeof(p2p)); in wpas_p2p_init()
4459 p2p.cb_ctx = wpa_s; in wpas_p2p_init()
4460 p2p.debug_print = wpas_p2p_debug_print; in wpas_p2p_init()
4461 p2p.p2p_scan = wpas_p2p_scan; in wpas_p2p_init()
4462 p2p.send_action = wpas_send_action; in wpas_p2p_init()
4463 p2p.send_action_done = wpas_send_action_done; in wpas_p2p_init()
4464 p2p.go_neg_completed = wpas_go_neg_completed; in wpas_p2p_init()
4465 p2p.go_neg_req_rx = wpas_go_neg_req_rx; in wpas_p2p_init()
4466 p2p.dev_found = wpas_dev_found; in wpas_p2p_init()
4467 p2p.dev_lost = wpas_dev_lost; in wpas_p2p_init()
4468 p2p.find_stopped = wpas_find_stopped; in wpas_p2p_init()
4469 p2p.start_listen = wpas_start_listen; in wpas_p2p_init()
4470 p2p.stop_listen = wpas_stop_listen; in wpas_p2p_init()
4471 p2p.send_probe_resp = wpas_send_probe_resp; in wpas_p2p_init()
4472 p2p.sd_request = wpas_sd_request; in wpas_p2p_init()
4473 p2p.sd_response = wpas_sd_response; in wpas_p2p_init()
4474 p2p.prov_disc_req = wpas_prov_disc_req; in wpas_p2p_init()
4475 p2p.prov_disc_resp = wpas_prov_disc_resp; in wpas_p2p_init()
4476 p2p.prov_disc_fail = wpas_prov_disc_fail; in wpas_p2p_init()
4477 p2p.invitation_process = wpas_invitation_process; in wpas_p2p_init()
4478 p2p.invitation_received = wpas_invitation_received; in wpas_p2p_init()
4479 p2p.invitation_result = wpas_invitation_result; in wpas_p2p_init()
4480 p2p.get_noa = wpas_get_noa; in wpas_p2p_init()
4481 p2p.go_connected = wpas_go_connected; in wpas_p2p_init()
4482 p2p.presence_resp = wpas_presence_resp; in wpas_p2p_init()
4483 p2p.is_concurrent_session_active = wpas_is_concurrent_session_active; in wpas_p2p_init()
4484 p2p.is_p2p_in_progress = _wpas_p2p_in_progress; in wpas_p2p_init()
4485 p2p.get_persistent_group = wpas_get_persistent_group; in wpas_p2p_init()
4486 p2p.get_go_info = wpas_get_go_info; in wpas_p2p_init()
4487 p2p.remove_stale_groups = wpas_remove_stale_groups; in wpas_p2p_init()
4488 p2p.p2ps_prov_complete = wpas_p2ps_prov_complete; in wpas_p2p_init()
4489 p2p.prov_disc_resp_cb = wpas_prov_disc_resp_cb; in wpas_p2p_init()
4490 p2p.p2ps_group_capability = p2ps_group_capability; in wpas_p2p_init()
4491 p2p.get_pref_freq_list = wpas_p2p_get_pref_freq_list; in wpas_p2p_init()
4494 os_memcpy(p2p.dev_addr, wpa_s->global->p2p_dev_addr, ETH_ALEN); in wpas_p2p_init()
4495 p2p.dev_name = wpa_s->conf->device_name; in wpas_p2p_init()
4496 p2p.manufacturer = wpa_s->conf->manufacturer; in wpas_p2p_init()
4497 p2p.model_name = wpa_s->conf->model_name; in wpas_p2p_init()
4498 p2p.model_number = wpa_s->conf->model_number; in wpas_p2p_init()
4499 p2p.serial_number = wpa_s->conf->serial_number; in wpas_p2p_init()
4501 os_memcpy(p2p.uuid, wpa_s->wps->uuid, 16); in wpas_p2p_init()
4502 p2p.config_methods = wpa_s->wps->config_methods; in wpas_p2p_init()
4505 if (wpas_p2p_setup_channels(wpa_s, &p2p.channels, &p2p.cli_channels)) { in wpas_p2p_init()
4513 p2p.reg_class = wpa_s->conf->p2p_listen_reg_class; in wpas_p2p_init()
4514 p2p.channel = wpa_s->conf->p2p_listen_channel; in wpas_p2p_init()
4515 p2p.channel_forced = 1; in wpas_p2p_init()
4521 if (p2p_config_get_random_social(&p2p, &p2p.reg_class, in wpas_p2p_init()
4522 &p2p.channel, in wpas_p2p_init()
4530 p2p.channel_forced = 0; in wpas_p2p_init()
4533 p2p.reg_class, p2p.channel); in wpas_p2p_init()
4537 p2p.op_reg_class = wpa_s->conf->p2p_oper_reg_class; in wpas_p2p_init()
4538 p2p.op_channel = wpa_s->conf->p2p_oper_channel; in wpas_p2p_init()
4539 p2p.cfg_op_channel = 1; in wpas_p2p_init()
4541 "%d:%d", p2p.op_reg_class, p2p.op_channel); in wpas_p2p_init()
4549 if (p2p_config_get_random_social(&p2p, &p2p.op_reg_class, in wpas_p2p_init()
4550 &p2p.op_channel, NULL, in wpas_p2p_init()
4554 p2p.op_reg_class = 0; in wpas_p2p_init()
4555 p2p.op_channel = 0; in wpas_p2p_init()
4559 p2p.cfg_op_channel = 0; in wpas_p2p_init()
4561 "%d:%d", p2p.op_reg_class, p2p.op_channel); in wpas_p2p_init()
4565 p2p.pref_chan = wpa_s->conf->p2p_pref_chan; in wpas_p2p_init()
4566 p2p.num_pref_chan = wpa_s->conf->num_p2p_pref_chan; in wpas_p2p_init()
4570 os_memcpy(p2p.country, wpa_s->conf->country, 2); in wpas_p2p_init()
4571 p2p.country[2] = 0x04; in wpas_p2p_init()
4573 os_memcpy(p2p.country, "XX\x04", 3); in wpas_p2p_init()
4575 os_memcpy(p2p.pri_dev_type, wpa_s->conf->device_type, in wpas_p2p_init()
4578 p2p.num_sec_dev_types = wpa_s->conf->num_sec_device_types; in wpas_p2p_init()
4579 os_memcpy(p2p.sec_dev_type, wpa_s->conf->sec_device_type, in wpas_p2p_init()
4580 p2p.num_sec_dev_types * WPS_DEV_TYPE_LEN); in wpas_p2p_init()
4582 p2p.concurrent_operations = !!(wpa_s->drv_flags & in wpas_p2p_init()
4585 p2p.max_peers = 100; in wpas_p2p_init()
4588 p2p.ssid_postfix_len = in wpas_p2p_init()
4590 if (p2p.ssid_postfix_len > sizeof(p2p.ssid_postfix)) in wpas_p2p_init()
4591 p2p.ssid_postfix_len = sizeof(p2p.ssid_postfix); in wpas_p2p_init()
4592 os_memcpy(p2p.ssid_postfix, wpa_s->conf->p2p_ssid_postfix, in wpas_p2p_init()
4593 p2p.ssid_postfix_len); in wpas_p2p_init()
4596 p2p.p2p_intra_bss = wpa_s->conf->p2p_intra_bss; in wpas_p2p_init()
4598 p2p.max_listen = wpa_s->max_remain_on_chan; in wpas_p2p_init()
4602 p2p.passphrase_len = wpa_s->conf->p2p_passphrase_len; in wpas_p2p_init()
4604 p2p.passphrase_len = 8; in wpas_p2p_init()
4606 global->p2p = p2p_init(&p2p); in wpas_p2p_init()
4607 if (global->p2p == NULL) in wpas_p2p_init()
4615 global->p2p, wpa_s->conf->wps_vendor_ext[i]); in wpas_p2p_init()
4618 p2p_set_no_go_freq(global->p2p, &wpa_s->conf->p2p_no_go_freq); in wpas_p2p_init()
4638 wpa_s->global->p2p, in wpas_p2p_deinit()
4711 p2p_deinit(global->p2p); in wpas_p2p_deinit_global()
4712 global->p2p = NULL; in wpas_p2p_deinit_global()
4750 p2p_set_config_timeout(wpa_s->global->p2p, in wpas_p2p_start_go_neg()
4753 return p2p_connect(wpa_s->global->p2p, peer_addr, wps_method, in wpas_p2p_start_go_neg()
4773 return p2p_authorize(wpa_s->global->p2p, peer_addr, wps_method, in wpas_p2p_auth_go_neg()
4917 if (p2p_prov_disc_req(wpa_s->global->p2p, in wpas_p2p_scan_res_join()
4965 freq = p2p_get_oper_freq(wpa_s->global->p2p, in wpas_p2p_scan_res_join()
4968 p2p_get_interface_addr(wpa_s->global->p2p, in wpas_p2p_scan_res_join()
4981 freq = p2p_get_oper_freq(wpa_s->global->p2p, in wpas_p2p_scan_res_join()
5060 if ((p2p_get_provisioning_info(wpa_s->global->p2p, in wpas_p2p_scan_res_join()
5075 if (p2p_prov_disc_req(wpa_s->global->p2p, in wpas_p2p_scan_res_join()
5126 wpa_s->wps->dev.p2p = 1; in wpas_p2p_join_scan_req()
5141 oper_freq = p2p_get_oper_freq(wpa_s->global->p2p, in wpas_p2p_join_scan_req()
5151 ielen = p2p_scan_ie_buf_len(wpa_s->global->p2p); in wpas_p2p_join_scan_req()
5162 p2p_scan_ie(wpa_s->global->p2p, ies, NULL, bands); in wpas_p2p_join_scan_req()
5351 ret = p2p_supported_freq(wpa_s->global->p2p, freq); in wpas_p2p_setup_freqs()
5353 ret = p2p_supported_freq_cli(wpa_s->global->p2p, freq); in wpas_p2p_setup_freqs()
5411 (!p2p_supported_freq(wpa_s->global->p2p, in wpas_p2p_setup_freqs()
5509 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_connect()
5573 if (p2p_get_interface_addr(wpa_s->global->p2p, peer_addr, in wpas_p2p_connect()
5576 p2p_get_dev_addr(wpa_s->global->p2p, peer_addr, in wpas_p2p_connect()
5602 p2p_set_own_pref_freq_list(wpa_s->global->p2p, pref_freq_list, size); in wpas_p2p_connect()
5658 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_remain_on_channel_cb()
5665 p2p_listen_cb(wpa_s->global->p2p, wpa_s->pending_listen_freq, in wpas_p2p_remain_on_channel_cb()
5682 return p2p_listen(wpa_s->global->p2p, timeout); in wpas_p2p_listen_start()
5702 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_cancel_remain_on_channel_cb()
5706 if (p2p_listen_end(wpa_s->global->p2p, freq) > 0) in wpas_p2p_cancel_remain_on_channel_cb()
5718 p2p_stop_listen(wpa_s->global->p2p); in wpas_p2p_cancel_remain_on_channel_cb()
5779 (!p2p_supported_freq(wpa_s->global->p2p, in wpas_p2p_select_go_freq()
5807 p2p_supported_freq_go(wpa_s->global->p2p, in wpas_p2p_select_go_freq()
5825 p2p_supported_freq_go(wpa_s->global->p2p, in wpas_p2p_select_go_freq()
5834 if (!p2p_supported_freq_go(wpa_s->global->p2p, freq)) { in wpas_p2p_select_go_freq()
5844 if (freq > 0 && !p2p_supported_freq_go(wpa_s->global->p2p, freq)) { in wpas_p2p_select_go_freq()
5872 p2p_supported_freq_go(wpa_s->global->p2p, freq) && in wpas_p2p_supported_freq_go()
5890 p2p_supported_freq(wpa_s->global->p2p, params->freq)) in wpas_p2p_select_go_freq_no_pref()
5899 p2p_supported_freq(wpa_s->global->p2p, params->freq)) in wpas_p2p_select_go_freq_no_pref()
5907 p2p_supported_freq(wpa_s->global->p2p, params->freq)) in wpas_p2p_select_go_freq_no_pref()
5915 p2p_supported_freq(wpa_s->global->p2p, params->freq)) in wpas_p2p_select_go_freq_no_pref()
6023 if (!p2p_supported_freq_go(wpa_s->global->p2p, freq)) { in wpas_p2p_init_go_params()
6158 cand = p2p_get_pref_freq(wpa_s->global->p2p, channels); in wpas_p2p_init_go_params()
6342 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_group_add()
6362 p2p_go_params(wpa_s->global->p2p, &params); in wpas_p2p_group_add()
6553 if (!(hapd->conf->p2p & P2P_GROUP_OWNER)) { in wpas_p2p_ie_update()
6596 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL || in wpas_p2p_group_init()
6623 group = p2p_group_init(wpa_s->global->p2p, cfg); in wpas_p2p_group_init()
6650 p2p_clear_provisioning_info(wpa_s->global->p2p, go_dev_addr); in wpas_p2p_wps_success()
6688 if (wpa_s->global->p2p) in wpas_p2p_wps_success()
6689 p2p_wps_success_cb(wpa_s->global->p2p, peer_addr); in wpas_p2p_wps_success()
6705 wpa_s->global->p2p, in wpas_p2p_wps_failed()
6791 if (wpa_s->global->p2p == NULL || wpa_s->global->p2p_disabled) { in wpas_p2p_prov_disc()
6796 return p2p_prov_disc_req(wpa_s->global->p2p, peer_addr, p2ps_prov, in wpas_p2p_prov_disc()
6836 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL || in wpas_p2p_find()
6839 (wpa_s->global->p2p_disabled || !wpa_s->global->p2p) ? in wpas_p2p_find()
6848 return p2p_find(wpa_s->global->p2p, timeout, type, in wpas_p2p_find()
6865 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_scan_res_ignore_search()
6872 p2p_scan_res_handled(wpa_s->global->p2p); in wpas_p2p_scan_res_ignore_search()
6883 if (wpa_s->global->p2p) in wpas_p2p_stop_find_oper()
6884 p2p_stop_find(wpa_s->global->p2p); in wpas_p2p_stop_find_oper()
6913 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_listen()
6941 if (wpa_s->global->p2p) in wpas_p2p_listen()
6942 p2p_stop_find(wpa_s->global->p2p); in wpas_p2p_listen()
6970 if (wpa_s->global->p2p == NULL) in wpas_p2p_assoc_req_ie()
6976 ret = p2p_assoc_req_ie(wpa_s->global->p2p, bss->bssid, buf, len, in wpas_p2p_assoc_req_ie()
6991 if (wpa_s->global->p2p == NULL) in wpas_p2p_probe_req_rx()
6994 switch (p2p_probe_req_rx(wpa_s->global->p2p, addr, dst, bssid, in wpas_p2p_probe_req_rx()
7017 if (wpa_s->global->p2p == NULL) in wpas_p2p_rx_action()
7020 p2p_rx_action(wpa_s->global->p2p, da, sa, bssid, category, data, len, in wpas_p2p_rx_action()
7031 if (wpa_s->global->p2p == NULL) in wpas_p2p_scan_ie()
7035 p2p_scan_ie(wpa_s->global->p2p, ies, NULL, bands); in wpas_p2p_scan_ie()
7055 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_reject()
7058 return p2p_reject(wpa_s->global->p2p, addr); in wpas_p2p_reject()
7120 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_invite()
7123 p2p_set_own_pref_freq_list(wpa_s->global->p2p, pref_freq_list, size); in wpas_p2p_invite()
7140 return p2p_invite(wpa_s->global->p2p, peer_addr, role, bssid, in wpas_p2p_invite()
7208 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_invite_group()
7219 return p2p_invite(wpa_s->global->p2p, peer_addr, role, bssid, in wpas_p2p_invite_group()
7300 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_presence_req()
7308 ret = p2p_presence_req(wpa_s->global->p2p, wpa_s->bssid, in wpas_p2p_presence_req()
7321 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_ext_listen()
7324 return p2p_ext_listen(wpa_s->global->p2p, period, interval); in wpas_p2p_ext_listen()
7420 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_deauth_notif()
7424 p2p_deauth_notif(wpa_s->global->p2p, bssid, reason_code, ie, in wpas_p2p_deauth_notif()
7447 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_disassoc_notif()
7451 p2p_disassoc_notif(wpa_s->global->p2p, bssid, reason_code, ie, in wpas_p2p_disassoc_notif()
7458 struct p2p_data *p2p = wpa_s->global->p2p; in wpas_p2p_update_config() local
7460 if (p2p == NULL) in wpas_p2p_update_config()
7467 p2p_set_dev_name(p2p, wpa_s->conf->device_name); in wpas_p2p_update_config()
7470 p2p_set_pri_dev_type(p2p, wpa_s->conf->device_type); in wpas_p2p_update_config()
7474 p2p_set_config_methods(p2p, wpa_s->wps->config_methods); in wpas_p2p_update_config()
7477 p2p_set_uuid(p2p, wpa_s->wps->uuid); in wpas_p2p_update_config()
7480 p2p_set_manufacturer(p2p, wpa_s->conf->manufacturer); in wpas_p2p_update_config()
7481 p2p_set_model_name(p2p, wpa_s->conf->model_name); in wpas_p2p_update_config()
7482 p2p_set_model_number(p2p, wpa_s->conf->model_number); in wpas_p2p_update_config()
7483 p2p_set_serial_number(p2p, wpa_s->conf->serial_number); in wpas_p2p_update_config()
7487 p2p_set_sec_dev_types(p2p, in wpas_p2p_update_config()
7493 p2p_remove_wps_vendor_extensions(p2p); in wpas_p2p_update_config()
7498 p2p, wpa_s->conf->wps_vendor_ext[i]); in wpas_p2p_update_config()
7508 p2p_set_country(p2p, country); in wpas_p2p_update_config()
7512 p2p_set_ssid_postfix(p2p, (u8 *) wpa_s->conf->p2p_ssid_postfix, in wpas_p2p_update_config()
7519 p2p_set_intra_bss_dist(p2p, wpa_s->conf->p2p_intra_bss); in wpas_p2p_update_config()
7544 ret = p2p_set_listen_channel(p2p, reg_class, channel, in wpas_p2p_update_config()
7571 ret = p2p_set_oper_channel(p2p, op_reg_class, op_channel, in wpas_p2p_update_config()
7579 if (p2p_set_pref_chan(p2p, wpa_s->conf->num_p2p_pref_chan, in wpas_p2p_update_config()
7585 if (p2p_set_no_go_freq(p2p, &wpa_s->conf->p2p_no_go_freq) < 0) { in wpas_p2p_update_config()
7592 p2p_set_passphrase_len(p2p, wpa_s->conf->p2p_passphrase_len); in wpas_p2p_update_config()
7608 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_set_cross_connect()
7612 p2p_set_cross_connect(wpa_s->global->p2p, enabled); in wpas_p2p_set_cross_connect()
7774 if (wpa_s->global == NULL || wpa_s->global->p2p == NULL) in wpas_p2p_update_channel_list()
7791 p2p_update_channel_list(wpa_s->global->p2p, &chan, &cli_chan); in wpas_p2p_update_channel_list()
7820 if (global->p2p == NULL) in wpas_p2p_cancel()
7829 peer = p2p_get_go_neg_peer(global->p2p); in wpas_p2p_cancel()
7833 p2p_unauthorize(global->p2p, peer); in wpas_p2p_cancel()
7901 struct p2p_data *p2p = wpa_s->global->p2p; in wpas_p2p_update_best_channels() local
7902 if (p2p == NULL) in wpas_p2p_update_best_channels()
7904 p2p_set_best_channels(p2p, freq_24, freq_5, freq_overall); in wpas_p2p_update_best_channels()
7911 struct p2p_data *p2p = wpa_s->global->p2p; in wpas_p2p_unauthorize() local
7913 if (p2p == NULL) in wpas_p2p_unauthorize()
7919 return p2p_unauthorize(p2p, peer); in wpas_p2p_unauthorize()
7949 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_in_progress()
7952 ret = p2p_in_progress(wpa_s->global->p2p); in wpas_p2p_in_progress()
8068 if (wpa_s->global->p2p) in wpas_p2p_notify_ap_sta_authorized()
8069 p2p_wps_success_cb(wpa_s->global->p2p, addr); in wpas_p2p_notify_ap_sta_authorized()
8171 if ((iface_addr && !psk->p2p && in wpas_p2p_remove_psk_entry()
8173 (!iface_addr && psk->p2p && in wpas_p2p_remove_psk_entry()
8178 MAC2STR(psk->addr), psk->p2p); in wpas_p2p_remove_psk_entry()
8221 p->p2p = 1; in wpas_p2p_new_psk_cb()
8224 p->p2p = 0; in wpas_p2p_new_psk_cb()
8247 p->p2p = 1; in wpas_p2p_new_psk_cb()
8250 p->p2p = 0; in wpas_p2p_new_psk_cb()
8260 MAC2STR(last->addr), last->p2p); in wpas_p2p_new_psk_cb()
8487 struct wpabuf *p2p) in wpas_p2p_nfc_handover() argument
8492 if (p2p == NULL) { in wpas_p2p_nfc_handover()
8499 ret = wpabuf_alloc(2 + wsc_len + 2 + wpabuf_len(p2p)); in wpas_p2p_nfc_handover()
8502 wpabuf_free(p2p); in wpas_p2p_nfc_handover()
8509 wpabuf_put_be16(ret, wpabuf_len(p2p)); in wpas_p2p_nfc_handover()
8510 wpabuf_put_buf(ret, p2p); in wpas_p2p_nfc_handover()
8513 wpabuf_free(p2p); in wpas_p2p_nfc_handover()
8560 struct wpabuf *wsc, *p2p; in wpas_p2p_nfc_handover_req() local
8565 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) { in wpas_p2p_nfc_handover_req()
8582 p2p = p2p_build_nfc_handover_req(wpa_s->global->p2p, cli_freq, in wpas_p2p_nfc_handover_req()
8586 return wpas_p2p_nfc_handover(ndef, wsc, p2p); in wpas_p2p_nfc_handover_req()
8593 struct wpabuf *wsc, *p2p; in wpas_p2p_nfc_handover_sel() local
8598 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_nfc_handover_sel()
8615 p2p = p2p_build_nfc_handover_sel(wpa_s->global->p2p, cli_freq, in wpas_p2p_nfc_handover_sel()
8619 return wpas_p2p_nfc_handover(ndef, wsc, p2p); in wpas_p2p_nfc_handover_sel()
8707 return p2p_invite(wpa_s->global->p2p, params->peer->p2p_device_addr, in wpas_p2p_nfc_auth_join()
8747 p2p_unauthorize(wpa_s->global->p2p, in wpas_p2p_nfc_resp_go_neg()
8814 res = p2p_process_nfc_connection_handover(wpa_s->global->p2p, &params); in wpas_p2p_nfc_connection_handover()
8923 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_nfc_tag_process()
8937 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_nfc_report_handover()
8968 if (wpa_s->global->p2p == NULL) in wpas_p2p_nfc_tag_enabled()
8979 p2p_set_authorized_oob_dev_pw_id(wpa_s->global->p2p, 0, in wpas_p2p_nfc_tag_enabled()
9061 wpa_s->global->p2p, wpa_s->conf->wps_nfc_dev_pw_id, go_intent, in wpas_p2p_nfc_tag_enabled()
9087 curr_chan = p2p_get_listen_channel(wpa_s->global->p2p); in wpas_p2p_optimize_listen_channel()
9103 p2p_set_listen_channel(wpa_s->global->p2p, 81, cand, 0); in wpas_p2p_optimize_listen_channel()
9248 !p2p_supported_freq_go(wpa_s->global->p2p, params.freq)) { in wpas_p2p_move_go_no_csa()
9341 if (!p2p_supported_freq_go(wpa_s->global->p2p, freq) && in wpas_p2p_consider_moving_one_go()
9351 } else if (!p2p_supported_freq(wpa_s->global->p2p, in wpas_p2p_consider_moving_one_go()
9480 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_indicate_state_change()
9490 if (wpa_s == wpa_s->global->p2p_init_wpa_s && wpa_s->global->p2p) { in wpas_p2p_deinit_iface()
9510 struct p2p_data *p2p = wpa_s->global->p2p; in wpas_p2p_lo_start() local
9522 if (wpa_s->global->p2p == NULL || in wpas_p2p_lo_start()
9528 if (!p2p_supported_freq(wpa_s->global->p2p, freq)) { in wpas_p2p_lo_start()
9545 buf = p2p_build_probe_resp_template(p2p, freq); in wpas_p2p_lo_start()