/external/wpa_supplicant_8/src/p2p/ |
D | p2p.c | 25 static void p2p_device_free(struct p2p_data *p2p, struct p2p_device *dev); 26 static void p2p_process_presence_req(struct p2p_data *p2p, const u8 *da, 29 static void p2p_process_presence_resp(struct p2p_data *p2p, const u8 *da, 53 void p2p_expire_peers(struct p2p_data *p2p) in p2p_expire_peers() argument 60 dl_list_for_each_safe(dev, n, &p2p->devices, struct p2p_device, list) { in p2p_expire_peers() 64 if (dev == p2p->go_neg_peer) { in p2p_expire_peers() 73 if (p2p->cfg->go_connected && in p2p_expire_peers() 74 p2p->cfg->go_connected(p2p->cfg->cb_ctx, in p2p_expire_peers() 84 for (i = 0; i < p2p->num_groups; i++) { in p2p_expire_peers() 86 p2p->groups[i], dev->info.p2p_device_addr)) in p2p_expire_peers() [all …]
|
D | p2p_invitation.c | 18 static struct wpabuf * p2p_build_invitation_req(struct p2p_data *p2p, in p2p_build_invitation_req() argument 29 struct wpabuf *wfd_ie = p2p->wfd_ie_invitation; in p2p_build_invitation_req() 30 if (wfd_ie && p2p->inv_role == P2P_INVITE_ROLE_ACTIVE_GO) { in p2p_build_invitation_req() 32 for (i = 0; i < p2p->num_groups; i++) { in p2p_build_invitation_req() 33 struct p2p_group *g = p2p->groups[i]; in p2p_build_invitation_req() 36 p2p->inv_bssid, ETH_ALEN) != 0) in p2p_build_invitation_req() 49 if (p2p->vendor_elem && p2p->vendor_elem[VENDOR_ELEM_P2P_INV_REQ]) in p2p_build_invitation_req() 50 extra += wpabuf_len(p2p->vendor_elem[VENDOR_ELEM_P2P_INV_REQ]); in p2p_build_invitation_req() 63 if (p2p->inv_role == P2P_INVITE_ROLE_ACTIVE_GO || !p2p->inv_persistent) in p2p_build_invitation_req() 66 p2p_buf_add_config_timeout(buf, p2p->go_timeout, in p2p_build_invitation_req() [all …]
|
D | p2p_go_neg.c | 35 int p2p_peer_channels_check(struct p2p_data *p2p, struct p2p_channels *own, in p2p_peer_channels_check() argument 53 if (pos[2] != 0x04 && os_memcmp(pos, p2p->cfg->country, 2) != 0) { in p2p_peer_channels_check() 54 p2p_info(p2p, "Mismatching country (ours=%c%c peer's=%c%c)", in p2p_peer_channels_check() 55 p2p->cfg->country[0], p2p->cfg->country[1], in p2p_peer_channels_check() 66 p2p_info(p2p, "Invalid peer Channel List"); in p2p_peer_channels_check() 79 p2p_dbg(p2p, "Own reg_classes %d peer reg_classes %d intersection reg_classes %d", in p2p_peer_channels_check() 84 p2p_info(p2p, "No common channels found"); in p2p_peer_channels_check() 91 static int p2p_peer_channels(struct p2p_data *p2p, struct p2p_device *dev, in p2p_peer_channels() argument 94 return p2p_peer_channels_check(p2p, &p2p->channels, dev, in p2p_peer_channels() 137 static struct wpabuf * p2p_build_go_neg_req(struct p2p_data *p2p, in p2p_build_go_neg_req() argument [all …]
|
D | p2p_sd.c | 50 struct p2p_sd_query * p2p_pending_sd_req(struct p2p_data *p2p, in p2p_pending_sd_req() argument 64 for (q = p2p->sd_queries; q; q = q->next) { in p2p_pending_sd_req() 91 p2p_dbg(p2p, "Too many SD request attempts to " MACSTR in p2p_pending_sd_req() 100 static void p2p_decrease_sd_bc_queries(struct p2p_data *p2p, int query_number) in p2p_decrease_sd_bc_queries() argument 104 p2p->num_p2p_sd_queries--; in p2p_decrease_sd_bc_queries() 105 dl_list_for_each(dev, &p2p->devices, struct p2p_device, list) { in p2p_decrease_sd_bc_queries() 117 static int p2p_unlink_sd_query(struct p2p_data *p2p, in p2p_unlink_sd_query() argument 123 q = p2p->sd_queries; in p2p_unlink_sd_query() 130 p2p_decrease_sd_bc_queries(p2p, query_number); in p2p_unlink_sd_query() 134 p2p->sd_queries = q->next; in p2p_unlink_sd_query() [all …]
|
D | p2p_pd.c | 43 static void p2ps_add_new_group_info(struct p2p_data *p2p, in p2ps_add_new_group_info() argument 54 if (!p2p->cfg->get_go_info) in p2ps_add_new_group_info() 57 found = p2p->cfg->get_go_info( in p2ps_add_new_group_info() 58 p2p->cfg->cb_ctx, intended_addr, ssid, in p2ps_add_new_group_info() 62 p2p->p2ps_prov->force_freq = force_freq; in p2ps_add_new_group_info() 63 p2p->p2ps_prov->pref_freq = 0; in p2ps_add_new_group_info() 66 p2p_prepare_channel(p2p, dev, force_freq, 0, 0); in p2ps_add_new_group_info() 68 p2p_buf_add_group_id(buf, p2p->cfg->dev_addr, in p2ps_add_new_group_info() 72 p2p_buf_add_intended_addr(buf, p2p->intended_addr); in p2ps_add_new_group_info() 76 if (!p2p->ssid_set) { in p2ps_add_new_group_info() [all …]
|
D | p2p_dev_disc.c | 17 static struct wpabuf * p2p_build_dev_disc_req(struct p2p_data *p2p, in p2p_build_dev_disc_req() argument 43 void p2p_dev_disc_req_cb(struct p2p_data *p2p, int success) in p2p_dev_disc_req_cb() argument 45 p2p_dbg(p2p, "Device Discoverability Request TX callback: success=%d", in p2p_dev_disc_req_cb() 53 p2p_set_state(p2p, P2P_CONNECT); in p2p_dev_disc_req_cb() 54 p2p_set_timeout(p2p, 0, 100000); in p2p_dev_disc_req_cb() 58 p2p_dbg(p2p, "GO acknowledged Device Discoverability Request - wait for response"); in p2p_dev_disc_req_cb() 67 int p2p_send_dev_disc_req(struct p2p_data *p2p, struct p2p_device *dev) in p2p_send_dev_disc_req() argument 73 go = p2p_get_device(p2p, dev->member_in_go_dev); in p2p_send_dev_disc_req() 75 …p2p_dbg(p2p, "Could not find peer entry for GO and frequency to send Device Discoverability Reques… in p2p_send_dev_disc_req() 79 req = p2p_build_dev_disc_req(p2p, go, dev->info.p2p_device_addr); in p2p_send_dev_disc_req() [all …]
|
D | p2p.h | 1142 void p2p_deinit(struct p2p_data *p2p); 1150 void p2p_flush(struct p2p_data *p2p); 1163 int p2p_unauthorize(struct p2p_data *p2p, const u8 *addr); 1173 int p2p_set_dev_name(struct p2p_data *p2p, const char *dev_name); 1175 int p2p_set_manufacturer(struct p2p_data *p2p, const char *manufacturer); 1176 int p2p_set_model_name(struct p2p_data *p2p, const char *model_name); 1177 int p2p_set_model_number(struct p2p_data *p2p, const char *model_number); 1178 int p2p_set_serial_number(struct p2p_data *p2p, const char *serial_number); 1180 void p2p_set_config_methods(struct p2p_data *p2p, u16 config_methods); 1181 void p2p_set_uuid(struct p2p_data *p2p, const u8 *uuid); [all …]
|
D | p2p_group.c | 35 struct p2p_data *p2p; member 46 struct p2p_group * p2p_group_init(struct p2p_data *p2p, in p2p_group_init() argument 55 groups = os_realloc_array(p2p->groups, p2p->num_groups + 1, in p2p_group_init() 61 groups[p2p->num_groups++] = group; in p2p_group_init() 62 p2p->groups = groups; in p2p_group_init() 64 group->p2p = p2p; in p2p_group_init() 101 struct p2p_data *p2p; in p2p_group_deinit() local 106 p2p = group->p2p; in p2p_group_deinit() 108 for (g = 0; g < p2p->num_groups; g++) { in p2p_group_deinit() 109 if (p2p->groups[g] == group) { in p2p_group_deinit() [all …]
|
D | p2p_i.h | 702 void p2p_channels_dump(struct p2p_data *p2p, const char *title, 715 int p2p_parse_ies_separate(const u8 *wsc, size_t wsc_len, const u8 *p2p, 752 void p2p_buf_add_device_info(struct wpabuf *buf, struct p2p_data *p2p, 775 void p2p_buf_add_p2p_interface(struct wpabuf *buf, struct p2p_data *p2p); 779 void p2p_buf_add_service_hash(struct wpabuf *buf, struct p2p_data *p2p); 783 void p2p_buf_add_service_instance(struct wpabuf *buf, struct p2p_data *p2p, 791 int p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id, 797 struct p2p_sd_query * p2p_pending_sd_req(struct p2p_data *p2p, 799 void p2p_free_sd_queries(struct p2p_data *p2p); 800 void p2p_rx_gas_initial_req(struct p2p_data *p2p, const u8 *sa, [all …]
|
D | p2p_build.c | 186 void p2p_buf_add_device_info(struct wpabuf *buf, struct p2p_data *p2p, in p2p_buf_add_device_info() argument 198 wpabuf_put_data(buf, p2p->cfg->dev_addr, ETH_ALEN); in p2p_buf_add_device_info() 210 } else if (p2p->cfg->config_methods) { in p2p_buf_add_device_info() 211 methods |= p2p->cfg->config_methods & in p2p_buf_add_device_info() 222 wpabuf_put_data(buf, p2p->cfg->pri_dev_type, in p2p_buf_add_device_info() 223 sizeof(p2p->cfg->pri_dev_type)); in p2p_buf_add_device_info() 226 wpabuf_put_u8(buf, p2p->cfg->num_sec_dev_types); in p2p_buf_add_device_info() 229 for (i = 0; i < p2p->cfg->num_sec_dev_types; i++) in p2p_buf_add_device_info() 230 wpabuf_put_data(buf, p2p->cfg->sec_dev_type[i], in p2p_buf_add_device_info() 234 nlen = p2p->cfg->dev_name ? os_strlen(p2p->cfg->dev_name) : 0; in p2p_buf_add_device_info() [all …]
|
D | p2p_utils.c | 287 int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq() argument 292 return p2p_channels_includes(&p2p->cfg->channels, op_reg_class, in p2p_supported_freq() 297 int p2p_supported_freq_go(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq_go() argument 302 return p2p_channels_includes(&p2p->cfg->channels, op_reg_class, in p2p_supported_freq_go() 304 !freq_range_list_includes(&p2p->no_go_freq, freq); in p2p_supported_freq_go() 308 int p2p_supported_freq_cli(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq_cli() argument 313 return p2p_channels_includes(&p2p->cfg->channels, op_reg_class, in p2p_supported_freq_cli() 315 p2p_channels_includes(&p2p->cfg->cli_channels, op_reg_class, in p2p_supported_freq_cli() 320 unsigned int p2p_get_pref_freq(struct p2p_data *p2p, in p2p_get_pref_freq() argument 326 channels : &p2p->cfg->channels; in p2p_get_pref_freq() [all …]
|
/external/tcpdump/tests/ |
D | spb.out | 1 IS-IS, p2p IIH, src-id 8888.8888.8888, length 1492 2 IS-IS, p2p IIH, src-id 2222.2222.2222, length 1492 3 IS-IS, p2p IIH, src-id 8888.8888.8888, length 1492 4 IS-IS, p2p IIH, src-id 2222.2222.2222, length 1492 7 IS-IS, p2p IIH, src-id 8888.8888.8888, length 1492 8 IS-IS, p2p IIH, src-id 2222.2222.2222, length 1492 9 IS-IS, p2p IIH, src-id 8888.8888.8888, length 1492 10 IS-IS, p2p IIH, src-id 2222.2222.2222, length 1492 11 IS-IS, p2p IIH, src-id 8888.8888.8888, length 1492 12 IS-IS, p2p IIH, src-id 2222.2222.2222, length 1492 [all …]
|
D | isis_4-v.out | 2 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 22 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 42 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 62 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 82 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 102 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 122 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 142 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 282 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 302 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wifi_display.c | 45 if (global->p2p == NULL) in wifi_display_get_wfd_ie() 72 if (global->p2p == NULL) in wifi_display_update_wfd_ie() 80 p2p_set_wfd_ie_beacon(global->p2p, NULL); in wifi_display_update_wfd_ie() 81 p2p_set_wfd_ie_probe_req(global->p2p, NULL); in wifi_display_update_wfd_ie() 82 p2p_set_wfd_ie_probe_resp(global->p2p, NULL); in wifi_display_update_wfd_ie() 83 p2p_set_wfd_ie_assoc_req(global->p2p, NULL); in wifi_display_update_wfd_ie() 84 p2p_set_wfd_ie_invitation(global->p2p, NULL); in wifi_display_update_wfd_ie() 85 p2p_set_wfd_ie_prov_disc_req(global->p2p, NULL); in wifi_display_update_wfd_ie() 86 p2p_set_wfd_ie_prov_disc_resp(global->p2p, NULL); in wifi_display_update_wfd_ie() 87 p2p_set_wfd_ie_go_neg(global->p2p, NULL); in wifi_display_update_wfd_ie() [all …]
|
D | p2p_supplicant.c | 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() [all …]
|
D | p2p_supplicant_sd.c | 572 if (!wpa_s->global->p2p) { in wpas_sd_req_asp() 597 for (adv_data = p2p_get_p2ps_adv_list(wpa_s->global->p2p); in wpas_sd_req_asp() 684 if (p2p_get_p2ps_adv_list(wpa_s->global->p2p)) in wpas_sd_all_asp() 763 !p2p_get_p2ps_adv_list(wpa_s->global->p2p)) { in wpas_sd_request() 961 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_sd_request() 963 return (uintptr_t) p2p_sd_request(wpa_s->global->p2p, dst, tlvs); in wpas_p2p_sd_request() 1025 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_sd_request_wfd() 1027 return (uintptr_t) p2p_sd_request_wfd(wpa_s->global->p2p, dst, tlvs); in wpas_p2p_sd_request_wfd() 1102 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_sd_cancel_request() 1104 return p2p_sd_cancel_request(wpa_s->global->p2p, in wpas_p2p_sd_cancel_request() [all …]
|
/external/iw/ |
D | p2p.c | 14 SECTION(p2p); 22 COMMAND(p2p, start, "", NL80211_CMD_START_P2P_DEVICE, 0, CIB_WDEV, handle_p2p_start, ""); 30 COMMAND(p2p, stop, "", NL80211_CMD_STOP_P2P_DEVICE, 0, CIB_WDEV, handle_p2p_stop, "");
|
/external/autotest/client/site_tests/p2p_ConsumeFiles/ |
D | control | 13 This test runs p2p-client on several common cases using a fake network of peers 14 to check that it can discover files on this network. If p2p-client isn't able 16 tested scenarios, a case where p2p-client should hang (because there are too 21 CRITERIA = 'Fails if p2p-client is not able to discover and get the URLs.'
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/ |
D | WifiP2pManagerFacade.java | 26 import android.net.wifi.p2p.WifiP2pConfig; 27 import android.net.wifi.p2p.WifiP2pDevice; 28 import android.net.wifi.p2p.WifiP2pDeviceList; 29 import android.net.wifi.p2p.WifiP2pGroup; 30 import android.net.wifi.p2p.WifiP2pGroupList; 31 import android.net.wifi.p2p.WifiP2pInfo; 32 import android.net.wifi.p2p.WifiP2pManager; 33 import android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceInfo; 34 import android.net.wifi.p2p.nsd.WifiP2pServiceInfo; 35 import android.net.wifi.p2p.nsd.WifiP2pServiceRequest; [all …]
|
/external/autotest/client/site_tests/p2p_ServeFiles/ |
D | control | 13 This test runs the p2p-server daemon which in turns runs the p2p-http-server 18 PURPOSE = 'Check that p2p-http-server daemon serves files over HTTP.'
|
/external/wpa_supplicant_8/src/ap/ |
D | beacon.c | 529 if ((hapd->conf->p2p & P2P_ENABLED) && is_p2p && in hostapd_gen_probe_resp() 537 if ((hapd->conf->p2p & (P2P_MANAGE | P2P_ENABLED | P2P_GROUP_OWNER)) == in hostapd_gen_probe_resp() 783 if (hapd->p2p && hapd->p2p_group && elems.wps_ie) { in handle_probe_req() 796 if (hapd->p2p && hapd->p2p_group && elems.p2p) { in handle_probe_req() 797 struct wpabuf *p2p; in handle_probe_req() local 798 p2p = ieee802_11_vendor_ie_concat(ie, ie_len, P2P_IE_VENDOR_TYPE); in handle_probe_req() 799 if (p2p && !p2p_group_match_dev_id(hapd->p2p_group, p2p)) { in handle_probe_req() 802 wpabuf_free(p2p); in handle_probe_req() 805 wpabuf_free(p2p); in handle_probe_req() 817 if ((hapd->conf->p2p & P2P_GROUP_OWNER) && in handle_probe_req() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_new_handlers_p2p.c | 423 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) { in wpa_dbus_p2p_check_enabled() 479 !p2p_peer_known(wpa_s->global->p2p, peer_addr))) || in wpas_dbus_handler_p2p_remove_client() 507 p2p_flush(wpa_s->global->p2p); in wpas_dbus_handler_p2p_flush() 590 !p2p_peer_known(wpa_s->global->p2p, addr)) in wpas_dbus_handler_p2p_connect() 718 !p2p_peer_known(wpa_s->global->p2p, peer_addr)) in wpas_dbus_handler_p2p_invite() 1163 struct p2p_data *p2p = wpa_s->global->p2p; in wpas_dbus_getter_p2p_peers() local 1185 peer_info = p2p_get_peer_found(p2p, NULL, next); in wpas_dbus_getter_p2p_peers() 1205 peer_info = p2p_get_peer_found(p2p, addr, next); in wpas_dbus_getter_p2p_peers() 1358 info = p2p_get_peer_found(peer_args->wpa_s->global->p2p, in wpas_dbus_getter_p2p_peer_device_name() 1396 info = p2p_get_peer_found(peer_args->wpa_s->global->p2p, in wpas_dbus_getter_p2p_peer_manufacturer() [all …]
|
/external/autotest/client/site_tests/p2p_ShareFiles/ |
D | control | 13 This test runs the p2p-server daemon on the DUT and checks that a peer on the 19 CRITERIA = "Fails if p2p-server doesn't announce its shared files via mDNS."
|
/external/webrtc/webrtc/ |
D | webrtc.gyp | 14 'p2p/p2p_tests.gypi', 64 'p2p/p2p.gyp:*',
|
/external/webrtc/webrtc/build/ |
D | merge_libs.gyp | 25 '../p2p/p2p.gyp:rtc_p2p',
|