/freebsd/contrib/wpa/src/p2p/ |
H A 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 …]
|
H A D | p2p_invitation.c | 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() 64 if (p2p->inv_role == P2P_INVITE_ROLE_ACTIVE_GO || !p2p->inv_persistent) in p2p_build_invitation_req() 67 p2p_buf_add_config_timeout(buf, p2p->go_timeout, in p2p_build_invitation_req() [all …]
|
H A D | p2p_go_neg.c | 36 int p2p_peer_channels_check(struct p2p_data *p2p, struct p2p_channels *own, in p2p_peer_channels_check() argument 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() 92 static int p2p_peer_channels(struct p2p_data *p2p, struct p2p_device *dev, in p2p_peer_channels() argument 95 return p2p_peer_channels_check(p2p, &p2p->channels, dev, in p2p_peer_channels() 138 static struct wpabuf * p2p_build_go_neg_req(struct p2p_data *p2p, in p2p_build_go_neg_req() argument [all …]
|
H A 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() 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() 129 p2p_decrease_sd_bc_queries(p2p, query_number); in p2p_unlink_sd_query() 133 p2p->sd_queries = q->next; in p2p_unlink_sd_query() [all …]
|
H A 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 …]
|
H A 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 …]
|
H A D | p2p.h | 1161 void p2p_deinit(struct p2p_data *p2p); 1169 void p2p_flush(struct p2p_data *p2p); 1182 int p2p_unauthorize(struct p2p_data *p2p, const u8 *addr); 1192 int p2p_set_dev_name(struct p2p_data *p2p, const char *dev_name); 1194 int p2p_set_manufacturer(struct p2p_data *p2p, const char *manufacturer); 1195 int p2p_set_model_name(struct p2p_data *p2p, const char *model_name); 1196 int p2p_set_model_number(struct p2p_data *p2p, const char *model_number); 1197 int p2p_set_serial_number(struct p2p_data *p2p, const char *serial_number); 1199 void p2p_set_config_methods(struct p2p_data *p2p, u16 config_methods); 1200 void p2p_set_uuid(struct p2p_data *p2p, const u8 *uuid); [all …]
|
H A 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 …]
|
H A D | p2p_i.h | 698 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, 798 struct p2p_sd_query * p2p_pending_sd_req(struct p2p_data *p2p, 800 void p2p_free_sd_queries(struct p2p_data *p2p); 801 void p2p_rx_gas_initial_req(struct p2p_data *p2p, const u8 *sa, [all …]
|
H A D | p2p_build.c | 192 void p2p_buf_add_device_info(struct wpabuf *buf, struct p2p_data *p2p, in p2p_buf_add_device_info() argument 204 wpabuf_put_data(buf, p2p->cfg->dev_addr, ETH_ALEN); in p2p_buf_add_device_info() 216 } else if (p2p->cfg->config_methods) { in p2p_buf_add_device_info() 217 methods |= p2p->cfg->config_methods & in p2p_buf_add_device_info() 228 wpabuf_put_data(buf, p2p->cfg->pri_dev_type, in p2p_buf_add_device_info() 229 sizeof(p2p->cfg->pri_dev_type)); in p2p_buf_add_device_info() 232 wpabuf_put_u8(buf, p2p->cfg->num_sec_dev_types); in p2p_buf_add_device_info() 235 for (i = 0; i < p2p->cfg->num_sec_dev_types; i++) in p2p_buf_add_device_info() 236 wpabuf_put_data(buf, p2p->cfg->sec_dev_type[i], in p2p_buf_add_device_info() 240 nlen = p2p->cfg->dev_name ? os_strlen(p2p->cfg->dev_name) : 0; in p2p_buf_add_device_info() [all …]
|
H A 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 …]
|
H A D | Makefile | 6 p2p.o \
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A 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 …]
|
H A D | p2p_supplicant.c | 227 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_valid_oper_freqs() 242 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_set_own_freq_preference() 255 p2p_set_own_freq_preference(wpa_s->global->p2p, freq); in wpas_p2p_set_own_freq_preference() 271 p2p_scan_res_handled(wpa_s->global->p2p, delay); in wpas_p2p_scan_res_handled() 286 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) in wpas_p2p_scan_res_handler() 314 if (p2p_scan_res_handler(wpa_s->global->p2p, bss->bssid, in wpas_p2p_scan_res_handler() 333 if (wpa_s->global->p2p_disabled || !wpa_s->global->p2p) in wpas_p2p_scan_res_fail_handler() 353 is_p2p_allow_6ghz(wpa_s->global->p2p) && include_6ghz) in wpas_p2p_scan_freqs() 391 p2p_notify_scan_trigger_status(wpa_s->global->p2p, ret); in wpas_p2p_trigger_scan_cb() 395 p2p_notify_scan_trigger_status(wpa_s->global->p2p, ret); in wpas_p2p_trigger_scan_cb() [all …]
|
H A 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 …]
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | UnwindInfoSection.cpp | 701 auto *p2p = in writeTo() local 704 p2p->kind = page.kind; in writeTo() 705 p2p->entryPageOffset = in writeTo() 707 p2p->entryCount = page.entryCount; in writeTo() 708 p2p->encodingsPageOffset = in writeTo() 709 p2p->entryPageOffset + p2p->entryCount * sizeof(uint32_t); in writeTo() 710 p2p->encodingsCount = page.localEncodings.size(); in writeTo() 711 auto *ep = reinterpret_cast<uint32_t *>(&p2p[1]); in writeTo() 725 auto *p2p = in writeTo() local 727 p2p->kind = page.kind; in writeTo() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers_p2p.c | 520 if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL) { in wpa_dbus_p2p_check_enabled() 582 !p2p_peer_known(wpa_s->global->p2p, peer_addr))) || in wpas_dbus_handler_p2p_remove_client() 611 p2p_flush(wpa_s->global->p2p); in wpas_dbus_handler_p2p_flush() 695 !p2p_peer_known(wpa_s->global->p2p, addr)) in wpas_dbus_handler_p2p_connect() 830 !p2p_peer_known(wpa_s->global->p2p, peer_addr)) in wpas_dbus_handler_p2p_invite() 1279 struct p2p_data *p2p = wpa_s->global->p2p; in wpas_dbus_getter_p2p_peers() local 1301 peer_info = p2p_get_peer_found(p2p, NULL, next); in wpas_dbus_getter_p2p_peers() 1321 peer_info = p2p_get_peer_found(p2p, addr, next); in wpas_dbus_getter_p2p_peers() 1474 info = p2p_get_peer_found(peer_args->wpa_s->global->p2p, in wpas_dbus_getter_p2p_peer_device_name() 1512 info = p2p_get_peer_found(peer_args->wpa_s->global->p2p, in wpas_dbus_getter_p2p_peer_manufacturer() [all …]
|
/freebsd/sys/contrib/dev/rtw88/ |
H A D | mac80211.c | 260 enum nl80211_iftype type, bool p2p) in rtw_ops_change_interface() argument 265 rtw_dbg(rtwdev, RTW_DBG_STATE, "change vif %pM (%d)->(%d), p2p (%d)->(%d)\n", in rtw_ops_change_interface() 266 vif->addr, vif->type, type, vif->p2p, p2p); in rtw_ops_change_interface() 268 rtw_dbg(rtwdev, RTW_DBG_STATE, "change vif %6D (%d)->(%d), p2p (%d)->(%d)\n", in rtw_ops_change_interface() 269 vif->addr, ":", vif->type, type, vif->p2p, p2p); in rtw_ops_change_interface() 275 vif->p2p = p2p; in rtw_ops_change_interface()
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | mac-ctxt.c | 247 if (!vif->p2p) in iwl_mvm_mac_ctxt_init() 519 if (vif->p2p) in iwl_mvm_get_mac_type() 683 if (vif->p2p) { in iwl_mvm_mac_ctxt_cmd_sta() 725 if (vif->probe_req_reg && vif->cfg.assoc && vif->p2p) 808 if (vif->type == NL80211_IFTYPE_AP && vif->p2p && in iwl_mac_ctxt_p2p_dev_has_extended_disc() 943 if (band == NL80211_BAND_2GHZ && !vif->p2p && in iwl_mvm_mac_ctxt_get_lowest_rate() 1247 if (vif->p2p && data->beacon_device_ts) 1348 WARN_ON(vif->type != NL80211_IFTYPE_AP || vif->p2p); in iwl_mvm_mac_ctxt_cmd_go() 1367 WARN_ON(vif->type != NL80211_IFTYPE_AP || !vif->p2p); in iwl_mvm_mac_ctx_send() 1395 if (!vif->p2p) in iwl_mvm_mac_ctxt_add() [all...] |
H A D | power.c | 269 if (vif->p2p && in iwl_mvm_power_allow_uapsd() 274 if (vif->p2p && !iwl_mvm_is_p2p_scm_uapsd_supported(mvm)) in iwl_mvm_power_allow_uapsd() 379 if (iwl_mvm_vif_low_latency(mvmvif) && vif->p2p && in iwl_mvm_power_build_cmd() 401 } else if (iwl_mvm_vif_low_latency(mvmvif) && vif->p2p && in iwl_mvm_power_build_cmd() 677 /* enable PM on p2p if p2p stand alone */ in iwl_mvm_power_set_pm() 703 * bss and p2p clients that share it in iwl_mvm_power_mac_dbgfs_read() 830 vif->type != NL80211_IFTYPE_STATION || vif->p2p) 861 if (vif->type != NL80211_IFTYPE_STATION || vif->p2p)
|
H A D | mld-mac80211.c | 57 vif->type == NL80211_IFTYPE_STATION && !vif->p2p) { in iwl_mvm_mld_mac_add_interface() 67 /* Save a pointer to p2p device vif, so it can later be used to in iwl_mvm_mld_mac_add_interface() 68 * update the p2p device MAC when a GO is started/stopped in iwl_mvm_mld_mac_add_interface() 88 vif->type == NL80211_IFTYPE_STATION && !vif->p2p && in iwl_mvm_mld_mac_add_interface() 95 if (vif->p2p || iwl_fw_lookup_cmd_ver(mvm->fw, PHY_CONTEXT_CMD, 1) < 5) in iwl_mvm_mld_mac_add_interface() 652 if (vif->p2p && mvm->p2p_device_vif) in iwl_mvm_mld_link_info_changed_station() 698 if (vif->p2p && mvm->p2p_device_vif) in iwl_mvm_mld_vif_delete_all_stas() 887 if (vif->p2p) { in iwl_mvm_mld_vif_cfg_changed() 1079 /* Supported only for p2p client interfaces */ in iwl_mvm_mld_change_vif_links() 1081 !vif->p2p) in iwl_mvm_mld_change_vif_links() [all...] |
/freebsd/contrib/wpa/src/ap/ |
H A D | beacon.c | 867 if ((hapd->conf->p2p & P2P_ENABLED) && params->is_p2p && in hostapd_probe_resp_fill_elems() 875 if ((hapd->conf->p2p & (P2P_MANAGE | P2P_ENABLED | P2P_GROUP_OWNER)) == in hostapd_probe_resp_fill_elems() 1425 if (hapd->p2p && hapd->p2p_group && elems.wps_ie) { in handle_probe_req() 1438 if (hapd->p2p && hapd->p2p_group && elems.p2p) { in handle_probe_req() 1439 struct wpabuf *p2p; in handle_probe_req() local 1440 p2p = ieee802_11_vendor_ie_concat(ie, ie_len, P2P_IE_VENDOR_TYPE); in handle_probe_req() 1441 if (p2p && !p2p_group_match_dev_id(hapd->p2p_group, p2p)) { in handle_probe_req() 1444 wpabuf_free(p2p); in handle_probe_req() 1447 wpabuf_free(p2p); in handle_probe_req() 1459 if ((hapd->conf->p2p & P2P_GROUP_OWNER) && in handle_probe_req() [all …]
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | mac80211.c | 115 rtw89_debug(rtwdev, RTW89_DBG_STATE, "add vif %pM type %d, p2p %d\n", in rtw89_ops_add_interface() 116 vif->addr, vif->type, vif->p2p); in rtw89_ops_add_interface() 178 rtw89_debug(rtwdev, RTW89_DBG_STATE, "remove vif %pM type %d p2p %d\n", in rtw89_ops_remove_interface() 179 vif->addr, vif->type, vif->p2p); in rtw89_ops_remove_interface() 198 enum nl80211_iftype type, bool p2p) in rtw89_ops_change_interface() 205 rtw89_debug(rtwdev, RTW89_DBG_STATE, "change vif %pM (%d)->(%d), p2p (%d)->(%d)\n", in rtw89_ops_change_interface() 206 vif->addr, vif->type, type, vif->p2p, p2p); in rtw89_ops_change_interface() 211 vif->p2p = p2p; in rtw89_ops_change_interface() 197 rtw89_ops_change_interface(struct ieee80211_hw * hw,struct ieee80211_vif * vif,enum nl80211_iftype type,bool p2p) rtw89_ops_change_interface() argument [all...] |
/freebsd/contrib/wpa/src/ |
H A D | Makefile | 1 SUBDIRS=ap common crypto drivers eapol_auth eapol_supp eap_common eap_peer eap_server l2_packet p2p…
|
/freebsd/sys/modules/ath10k/ |
H A D | Makefile | 12 SRCS+= p2p.c swap.c
|