| /freebsd/contrib/wpa/src/p2p/ |
| H A D | p2p.c | 2 * Wi-Fi Direct - P2P module 21 #include "p2p.h" 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, 40 * timeout for this to avoid hitting P2P timeout unnecessarily. 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() [all …]
|
| H A D | p2p_invitation.c | 2 * Wi-Fi Direct - P2P Invitation procedure 15 #include "p2p.h" 18 static struct wpabuf * p2p_build_invitation_req(struct p2p_data *p2p, in p2p_build_invitation_req() argument 30 struct wpabuf *wfd_ie = p2p->wfd_ie_invitation; in p2p_build_invitation_req() 31 if (wfd_ie && p2p->inv_role == P2P_INVITE_ROLE_ACTIVE_GO) { in p2p_build_invitation_req() 33 for (i = 0; i < p2p->num_groups; i++) { in p2p_build_invitation_req() 34 struct p2p_group *g = p2p->groups[i]; in p2p_build_invitation_req() 37 p2p->inv_bssid)) in p2p_build_invitation_req() 50 if (p2p->vendor_elem && p2p->vendor_elem[VENDOR_ELEM_P2P_INV_REQ]) in p2p_build_invitation_req() 51 extra += wpabuf_len(p2p->vendor_elem[VENDOR_ELEM_P2P_INV_REQ]); in p2p_build_invitation_req() [all …]
|
| H A D | p2p_go_neg.c | 2 * Wi-Fi Direct - P2P Group Owner Negotiation 18 #include "p2p.h" 36 int p2p_peer_channels_check(struct p2p_data *p2p, struct p2p_channels *own, in p2p_peer_channels_check() argument 53 wpa_hexdump_ascii(MSG_DEBUG, "P2P: Peer country", pos, 3); in p2p_peer_channels_check() 54 if (pos[2] != 0x04 && os_memcmp(pos, p2p->cfg->country, 2) != 0) { in p2p_peer_channels_check() 55 p2p_info(p2p, "Mismatching country (ours=%c%c peer's=%c%c)", in p2p_peer_channels_check() 56 p2p->cfg->country[0], p2p->cfg->country[1], in p2p_peer_channels_check() 67 p2p_info(p2p, "Invalid peer Channel List"); in p2p_peer_channels_check() 80 p2p_dbg(p2p, "Own reg_classes %d peer reg_classes %d intersection reg_classes %d", in p2p_peer_channels_check() 85 p2p_info(p2p, "No common channels found"); in p2p_peer_channels_check() [all …]
|
| H A D | p2p_sd.c | 2 * Wi-Fi Direct - P2P service discovery 15 #include "p2p.h" 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() 90 p2p_dbg(p2p, "Too many SD request attempts to " MACSTR in p2p_pending_sd_req() 99 static void p2p_decrease_sd_bc_queries(struct p2p_data *p2p, int query_number) in p2p_decrease_sd_bc_queries() argument 103 p2p->num_p2p_sd_queries--; in p2p_decrease_sd_bc_queries() 104 dl_list_for_each(dev, &p2p->devices, struct p2p_device, list) { in p2p_decrease_sd_bc_queries() 116 static int p2p_unlink_sd_query(struct p2p_data *p2p, in p2p_unlink_sd_query() argument 122 q = p2p->sd_queries; in p2p_unlink_sd_query() [all …]
|
| H A D | p2p_pd.c | 2 * Wi-Fi Direct - P2P provision discovery 16 #include "p2p.h" 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() [all …]
|
| H A D | p2p_dev_disc.c | 2 * Wi-Fi Direct - P2P Device Discoverability procedure 14 #include "p2p.h" 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() 50 * Use P2P find, if needed, to find the other device or to 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 [all …]
|
| H A D | p2p.h | 2 * Wi-Fi Direct - P2P module 17 /* P2P ASP Setup Capability */ 79 * struct p2p_go_neg_results - P2P Group Owner Negotiation results 141 * peer_device_addr - P2P Device Address of the peer 146 * peer_interface_addr - P2P Interface Address of the peer 203 * conncap - Connection Capabilities negotiated between P2P peers 324 * struct p2p_peer_info - P2P peer information 328 * p2p_device_addr - P2P Device Address of the peer 405 * This buffer includes any other vendor element than P2P, WPS, and WFD 430 * struct p2p_config - P2P configuration [all …]
|
| H A D | p2p_build.c | 2 * P2P - IE builder 26 wpa_printf(MSG_DEBUG, "P2P: * Dialog Token: %d", dialog_token); in p2p_buf_add_action_hdr() 39 wpa_printf(MSG_DEBUG, "P2P: * Dialog Token: %d", dialog_token); in p2p_buf_add_public_action_hdr() 47 /* P2P IE header */ in p2p_buf_add_ie_hdr() 51 wpa_printf(MSG_DEBUG, "P2P: * P2P IE header"); in p2p_buf_add_ie_hdr() 58 /* Update P2P IE Length */ in p2p_buf_update_ie_hdr() 65 /* P2P Capability */ in p2p_buf_add_capability() 70 wpa_printf(MSG_DEBUG, "P2P: * Capability dev=%02x group=%02x", in p2p_buf_add_capability() 81 wpa_printf(MSG_DEBUG, "P2P: * GO Intent: Intent %u Tie breaker %u", in p2p_buf_add_go_intent() 95 wpa_printf(MSG_DEBUG, "P2P: * Listen Channel: Regulatory Class %u " in p2p_buf_add_listen_channel() [all …]
|
| H A D | p2p_parse.c | 2 * P2P - IE parser 46 wpa_printf(MSG_DEBUG, "P2P: Too short Capability " in p2p_parse_attribute() 51 wpa_printf(MSG_DEBUG, "P2P: * Device Capability %02x " in p2p_parse_attribute() 57 wpa_printf(MSG_DEBUG, "P2P: Too short Device ID " in p2p_parse_attribute() 62 wpa_printf(MSG_DEBUG, "P2P: * Device ID " MACSTR, in p2p_parse_attribute() 67 wpa_printf(MSG_DEBUG, "P2P: Too short GO Intent " in p2p_parse_attribute() 72 wpa_printf(MSG_DEBUG, "P2P: * GO Intent: Intent %u " in p2p_parse_attribute() 77 wpa_printf(MSG_DEBUG, "P2P: Too short Status " in p2p_parse_attribute() 82 wpa_printf(MSG_DEBUG, "P2P: * Status: %d", data[0]); in p2p_parse_attribute() 86 wpa_printf(MSG_DEBUG, "P2P: * Listen Channel: Ignore " in p2p_parse_attribute() [all …]
|
| H A D | p2p_group.c | 2 * Wi-Fi Direct - P2P group operations 18 #include "p2p.h" 23 u8 addr[ETH_ALEN]; /* P2P Interface Address */ 24 u8 dev_addr[ETH_ALEN]; /* P2P Device Address */ 32 * struct p2p_group - Internal P2P module per-group data 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() [all …]
|
| H A D | p2p_i.h | 2 * P2P - Internal definitions for P2P module 14 #include "p2p.h" 19 * A threshold (in seconds) to prefer a direct Probe Response frame from a P2P 20 * Device over the P2P Client Info received from a GO. 27 * To force Service Instances to fit within a single P2P Tag, MAX_SVC_ADV_LEN 40 * struct p2p_device - P2P Device data (internal to P2P module) 56 * identifier for the P2P Device. 64 * P2P Device Address of the GO in whose group this P2P Device is a 70 * P2P Interface Address of the GO in whose group this P2P Device is a 164 * struct p2p_data - P2P module data (internal to P2P module) [all …]
|
| H A D | p2p_utils.c | 2 * P2P - generic helper functions 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 [all …]
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | p2p_supplicant.c | 2 * wpa_supplicant - P2P 18 #include "p2p/p2p.h" 52 * it is currently using, but is no longer valid for P2P use cases. 65 * How many seconds to try to reconnect to the GO when connection in P2P client 75 * P2P Client. 83 * WPS provisioning step on the GO. This controls the extra time the P2P 99 #define P2P_MGMT_DEVICE_PREFIX "p2p-dev-" 198 wpa_dbg(wpa_s, MSG_DEBUG, "P2P: num_unused_channels: %d", unused); in wpas_p2p_num_unused_channels() 205 * interfaces, and that are also valid for P2P operation. 227 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_valid_oper_freqs() [all …]
|
| H A D | wifi_display.c | 13 #include "p2p/p2p.h" 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() [all …]
|
| H A D | p2p_supplicant_sd.c | 2 * wpa_supplicant - P2P service discovery 13 #include "p2p/p2p.h" 27 * 27-octet in-memory packet from P2P specification containing two implied 41 wpa_printf(MSG_DEBUG, "P2P: Invalid domain name " in p2p_sd_dns_uncompress_label() 52 wpa_printf(MSG_DEBUG, "P2P: No room for full " in p2p_sd_dns_uncompress_label() 59 wpa_printf(MSG_DEBUG, "P2P: Invalid DNS " in p2p_sd_dns_uncompress_label() 78 wpa_printf(MSG_DEBUG, "P2P: Invalid domain name " in p2p_sd_dns_uncompress_label() 99 /* Uncompress domain names per RFC 1035 using the P2P SD in-memory packet. 105 /* 27-octet in-memory packet from P2P specification */ in p2p_sd_dns_uncompress() 231 wpa_printf(MSG_DEBUG, "P2P: SD Request for all Bonjour services"); in wpas_sd_all_bonjour() [all …]
|
| H A D | README-P2P | 1 wpa_supplicant and Wi-Fi P2P 4 This document describes how the Wi-Fi P2P implementation in 10 Introduction to Wi-Fi P2P 15 More information about Wi-Fi P2P is available from Wi-Fi Alliance: 28 Wi-Fi P2P is an optional component that needs to be enabled in the 30 configuration that includes Wi-Fi P2P support and Linux nl80211 41 for P2P may be set. In order to make the devices easier to recognize, 46 device_name=My P2P Device 53 Actual Wi-Fi P2P operations are requested during runtime. These can be 64 Most of the P2P operations are done on the main interface (e.g., the [all …]
|
| H A D | ChangeLog | 65 * fixed P2P provision discovery processing of a specially constructed 68 * fixed P2P group information processing of a specially constructed 80 * added P2P support for EDMG (IEEE 802.11ay) channels 124 * improved robustness of P2P Action frame scheduling 194 * added support for random P2P Device/Interface Address use 287 * extended channel switch support for P2P GO 315 * P2P 317 consistent with other P2P peer cases 319 - indicate group completion in P2P Client role after data association 402 * added support for PBSS/PCP and P2P on 60 GHz [all …]
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | p2p_hostapd.c | 2 * hostapd / P2P integration 13 #include "p2p/p2p.h" 36 wpa_printf(MSG_DEBUG, "P2P: Set NoA parameters: count=%u start=%d " in hostapd_p2p_set_noa() 46 wpa_printf(MSG_DEBUG, "P2P: Non-periodic NoA - set " in hostapd_p2p_set_noa() 56 wpa_printf(MSG_DEBUG, "P2P: No legacy STAs connected - update " in hostapd_p2p_set_noa() 61 wpa_printf(MSG_DEBUG, "P2P: Legacy STA(s) connected - do not enable " in hostapd_p2p_set_noa() 70 wpa_printf(MSG_DEBUG, "P2P: First non-P2P device connected"); in hostapd_p2p_non_p2p_sta_connected() 73 wpa_printf(MSG_DEBUG, "P2P: Disable periodic NoA"); in hostapd_p2p_non_p2p_sta_connected() 81 wpa_printf(MSG_DEBUG, "P2P: Last non-P2P device disconnected"); in hostapd_p2p_non_p2p_sta_disconnected() 84 wpa_printf(MSG_DEBUG, "P2P: Enable periodic NoA"); in hostapd_p2p_non_p2p_sta_disconnected() [all …]
|
| /freebsd/contrib/wpa/src/common/ |
| H A D | wpa_ctrl.h | 256 /** P2P device found */ 257 #define P2P_EVENT_DEVICE_FOUND "P2P-DEVICE-FOUND " 259 /** P2P device lost */ 260 #define P2P_EVENT_DEVICE_LOST "P2P-DEVICE-LOST " 262 /** A P2P device requested GO negotiation, but we were not ready to start the 264 #define P2P_EVENT_GO_NEG_REQUEST "P2P-GO-NEG-REQUEST " 265 #define P2P_EVENT_GO_NEG_SUCCESS "P2P-GO-NEG-SUCCESS " 266 #define P2P_EVENT_GO_NEG_FAILURE "P2P-GO-NEG-FAILURE " 267 #define P2P_EVENT_GROUP_FORMATION_SUCCESS "P2P-GROUP-FORMATION-SUCCESS " 268 #define P2P_EVENT_GROUP_FORMATION_FAILURE "P2P-GROUP-FORMATION-FAILURE " [all …]
|
| /freebsd/contrib/wpa/wpa_supplicant/examples/ |
| H A D | p2p-nfc.py | 3 # Example nfcpy to wpa_supplicant wrapper for P2P NFC operations 94 res = wpas.request("NFC_GET_HANDOVER_REQ NDEF P2P-CR").rstrip() 114 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF P2P-CR-TAG").rstrip() 116 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF P2P-CR").rstrip() 136 …cmd = "NFC_REPORT_HANDOVER " + type + " P2P " + str(req).encode("hex") + " " + str(sel).encode("he… 177 print("Add WPS request in addition to P2P") 235 if carrier.type == "application/vnd.wfa.p2p": 236 print("P2P carrier type match - send to wpa_supplicant") 238 success_report("P2P handover reported successfully (initiator)") 240 summary("P2P handover report rejected") [all …]
|
| H A D | p2p-action-udhcp.sh | 23 if [ "$CMD" = "P2P-GROUP-STARTED" ]; then 28 udhcpd /etc/udhcpd-p2p.conf 38 if [ "$CMD" = "P2P-GROUP-REMOVED" ]; then 50 if [ "$CMD" = "P2P-CROSS-CONNECT-ENABLE" ]; then 61 if [ "$CMD" = "P2P-CROSS-CONNECT-DISABLE" ]; then
|
| /freebsd/sys/contrib/device-tree/Bindings/phy/ |
| H A D | transmit-amplitude.yaml | 17 tx-p2p-microvolt: 21 'tx-p2p-microvolt-names' property must be provided and contain 24 tx-p2p-microvolt-names: 26 Names of the modes corresponding to voltages in the 'tx-p2p-microvolt' 93 tx-p2p-microvolt-names: [ tx-p2p-microvolt ] 101 tx-p2p-microvolt = <915000>, <1100000>, <1200000>; 102 tx-p2p-microvolt-names = "2500base-x", "usb-hs", "usb-ss";
|
| /freebsd/contrib/wpa/wpa_supplicant/dbus/ |
| H A D | dbus_new_handlers_p2p.h | 2 * WPA Supplicant / dbus-based control interface for p2p 18 * P2P Device methods 90 * P2P Device property accessor methods. 100 * P2P Peer properties. 120 * P2P Group properties 132 * P2P Persistent Groups and properties
|
| /freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
| H A D | txq.h | 15 * @IWL_MVM_DQA_P2P_DEVICE_QUEUE: a queue reserved for P2P device frames 17 * monitor mode. Note this queue is the same as the queue for P2P device 18 * but we can't have active monitor mode along with P2P device anyway. 19 * @IWL_MVM_DQA_GCAST_QUEUE: a queue reserved for P2P GO/SoftAP GCAST frames 26 * @IWL_MVM_DQA_AP_PROBE_RESP_QUEUE: a queue reserved for P2P GO/SoftAP probe
|
| /freebsd/tests/sys/net/ |
| H A D | if_clone_test.sh | 182 do_up_stress "gif" "" "p2p" 197 do_up_stress "gif" "6" "p2p" 317 do_up_stress "tun" "" "p2p" 332 do_up_stress "tun" "6" "p2p" 490 # $3 p2p for point to point interfaces, anything else for normal interfaces 494 IFACE IPV6 P2P SRCDIR LOOP_PID ipv6_cmd up_cmd 508 P2P=$3 516 if [ "$P2P" = "p2p" ]; then
|