Lines Matching refs:peer_bi
108 struct dpp_bootstrap_info *peer_bi, *own_bi; in hostapd_dpp_nfc_handover_req() local
122 peer_bi = dpp_add_nfc_uri(hapd->iface->interfaces->dpp, pos); in hostapd_dpp_nfc_handover_req()
123 if (!peer_bi) { in hostapd_dpp_nfc_handover_req()
129 if (dpp_nfc_update_bi(own_bi, peer_bi) < 0) in hostapd_dpp_nfc_handover_req()
132 return peer_bi->id; in hostapd_dpp_nfc_handover_req()
139 struct dpp_bootstrap_info *peer_bi, *own_bi; in hostapd_dpp_nfc_handover_sel() local
153 peer_bi = dpp_add_nfc_uri(hapd->iface->interfaces->dpp, pos); in hostapd_dpp_nfc_handover_sel()
154 if (!peer_bi) { in hostapd_dpp_nfc_handover_sel()
160 if (peer_bi->curve != own_bi->curve) { in hostapd_dpp_nfc_handover_sel()
166 return peer_bi->id; in hostapd_dpp_nfc_handover_sel()
301 struct dpp_bootstrap_info *peer_bi) in hostapd_dpp_pkex_done() argument
312 os_snprintf(cmd, sizeof(cmd), " peer=%u %s", peer_bi->id, in hostapd_dpp_pkex_done()
328 if (peer_bi->curve != own_bi->curve) { in hostapd_dpp_pkex_done()
331 peer_bi->curve->name, own_bi->curve->name); in hostapd_dpp_pkex_done()
351 peer_bi, own_bi, allowed_roles, 0, in hostapd_dpp_pkex_done()
784 else if (is_zero_ether_addr(auth->peer_bi->mac_addr)) in hostapd_dpp_auth_init_next()
787 dst = auth->peer_bi->mac_addr; in hostapd_dpp_auth_init_next()
835 struct dpp_bootstrap_info *peer_bi, *own_bi = NULL; in hostapd_dpp_auth_init() local
850 peer_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp, atoi(pos)); in hostapd_dpp_auth_init()
851 if (!peer_bi) { in hostapd_dpp_auth_init()
867 if (!peer_bi->host) { in hostapd_dpp_auth_init()
873 os_memcpy(&ipaddr, peer_bi->host, sizeof(ipaddr)); in hostapd_dpp_auth_init()
874 tcp_port = peer_bi->port; in hostapd_dpp_auth_init()
897 if (peer_bi->curve != own_bi->curve) { in hostapd_dpp_auth_init()
900 peer_bi->curve->name, own_bi->curve->name); in hostapd_dpp_auth_init()
940 peer_bi, own_bi, allowed_roles, neg_freq, in hostapd_dpp_auth_init()
953 if (!is_zero_ether_addr(peer_bi->mac_addr)) in hostapd_dpp_auth_init()
954 os_memcpy(auth->peer_mac_addr, peer_bi->mac_addr, ETH_ALEN); in hostapd_dpp_auth_init()
1038 struct dpp_bootstrap_info *own_bi = NULL, *peer_bi = NULL; in hostapd_dpp_rx_auth_req() local
1073 r_bootstrap, &own_bi, &peer_bi); in hostapd_dpp_rx_auth_req()
1091 if (!peer_bi || peer_bi->type != DPP_BOOTSTRAP_PKEX) { in hostapd_dpp_rx_auth_req()
1097 if (os_memcmp(peer_bi->pubkey_hash, own_bi->peer_pubkey_hash, in hostapd_dpp_rx_auth_req()
1115 peer_bi, own_bi, freq, hdr, buf, len); in hostapd_dpp_rx_auth_req()
1675 struct dpp_bootstrap_info *peer_bi; in hostapd_dpp_rx_presence_announcement() local
1690 peer_bi = dpp_bootstrap_find_chirp(hapd->iface->interfaces->dpp, in hostapd_dpp_rx_presence_announcement()
1693 peer_bi ? (int) peer_bi->id : -1, in hostapd_dpp_rx_presence_announcement()
1695 if (!peer_bi) { in hostapd_dpp_rx_presence_announcement()
1714 peer_bi, NULL, DPP_CAPAB_CONFIGURATOR, freq, NULL, in hostapd_dpp_rx_presence_announcement()