Lines Matching refs:peer
42 * P2P_PEER_EXPIRATION_AGE - Number of seconds after which inactive peer
64 * GO Negotiation is in progress with the peer, so
65 * don't expire the peer entry until GO Negotiation
76 * peer is the GO, so do not expire the peer entry.
89 * The peer is connected as a client in a group where
90 * we are the GO, so do not expire the peer entry.
96 p2p_dbg(p2p, "Expiring old peer entry " MACSTR,
214 void p2p_go_neg_failed(struct p2p_data *p2p, struct p2p_device *peer,
229 if (peer) {
230 wpabuf_free(peer->go_neg_conf);
231 peer->go_neg_conf = NULL;
232 os_memcpy(res.peer_device_addr, peer->info.p2p_device_addr,
234 os_memcpy(res.peer_interface_addr, peer->intended_addr,
356 * p2p_get_device - Fetch a peer entry
358 * @addr: P2P Device Address of the peer
373 * p2p_get_device_interface - Fetch a peer entry based on P2P Interface Address
375 * @addr: P2P Interface Address of the peer
391 * p2p_create_device - Create a peer entry
393 * @addr: P2P Device Address of the peer
396 * If there is already an entry for the peer, it will be returned instead of
416 p2p_dbg(p2p, "Remove oldest peer entry to make room for a new peer");
601 p2p_dbg(p2p, "Update peer " MACSTR
653 * p2p_add_device - Add peer entries based on scan results or P2P frames
657 * @level: Signal level (signal strength of the received frame from the peer)
666 * to the peer table. This function can also be used with some other frames
699 p2p_dbg(p2p, "Do not add peer filter for " MACSTR
700 " due to peer filter", MAC2STR(p2p_dev_addr));
717 * Update the device entry only if the new peer
722 p2p_dbg(p2p, "Do not update peer entry based on old frame (rx_time=%u.%06u last_seen=%u.%06u)",
805 p2p_dbg(p2p, "Peer found with Listen frequency %d MHz (rx_time=%u.%06u)",
819 * events, postpone reporting this peer until we've fully
822 * At least for now, do this only if the peer was detected on
823 * one of the social channels since that peer can be easily be
829 p2p_dbg(p2p, "Do not report peer " MACSTR
1014 p2p_dbg(p2p, "Peer not known anymore");
1309 * @dev: Selected peer device
1316 * Negotiation prior to having received peer information. The selected channel
1317 * may be further optimized in p2p_reselect_channel() once the peer information
1382 p2p_dbg(p2p, "Request to start group negotiation - peer=" MACSTR
1416 * First, try to connect directly. If the peer does not
1495 p2p_dbg(p2p, "Request to authorize group negotiation - peer=" MACSTR
1549 p2p_dbg(p2p, "Unknown peer Listen channel: "
1557 p2p_dbg(p2p, "Update peer " MACSTR
1613 void p2p_go_complete(struct p2p_data *p2p, struct p2p_device *peer)
1616 int go = peer->go_state == LOCAL_GO;
1622 MAC2STR(peer->info.p2p_device_addr), go ? "local end" : "peer");
1626 os_memcpy(res.peer_device_addr, peer->info.p2p_device_addr, ETH_ALEN);
1627 os_memcpy(res.peer_interface_addr, peer->intended_addr, ETH_ALEN);
1628 res.wps_method = peer->wps_method;
1629 if (peer->flags & P2P_DEV_PREFER_PERSISTENT_GROUP) {
1630 if (peer->flags & P2P_DEV_PREFER_PERSISTENT_RECONN)
1644 res.freq = peer->oper_freq;
1652 p2p_channels_dump(p2p, "peer channels", &peer->channels);
1653 p2p_channels_intersect(&p2p->channels, &peer->channels,
1676 res.peer_config_timeout = go ? peer->client_timeout : peer->go_timeout;
1680 peer->go_neg_req_sent = 0;
1681 peer->wps_method = WPS_NOT_READY;
1682 peer->oob_pw_id = 0;
1683 wpabuf_free(peer->go_neg_conf);
1684 peer->go_neg_conf = NULL;
1863 * peer entry based on this frames.
2215 /* Received a Probe Request from GO Negotiation peer */
2216 p2p_dbg(p2p, "Found GO Negotiation peer - try to start GO negotiation from timeout");
2227 /* Received a Probe Request from Invite peer */
2228 p2p_dbg(p2p, "Found Invite peer - try to start Invite from timeout");
2293 struct p2p_device *peer;
2328 peer = bssid ? p2p_get_device(p2p, bssid) : NULL;
2335 p2p_buf_add_device_info(tmp, p2p, peer);
2418 MACSTR " (GO Negotiation peer " MACSTR ")",
2421 return; /* Ignore unexpected peer address */
2579 /* Check if after_scan_tx is for this peer. If so free it */
2771 p2p_dbg(p2p, "No SD peer entry known");
2776 /* Wait for response from the peer */
2794 * Retry the prov disc req attempt only for the peer that the user had
2859 /* Wait for response from the peer */
2984 p2p_dbg(p2p, "Peer " MACSTR " did not acknowledge request - try to use device discoverability through its GO",
3001 * Peer is expected to wait our response and we will skip the
3004 * sync with peer not listening.
3042 * now peer is awaiting response from our side.
3097 * often showing failure even when the peer has actually
3098 * received the frame. Since the peer may change channels
3102 * peer did indeed receive the frame, continue regardless of
3105 p2p_dbg(p2p, "Assume GO Negotiation Confirm TX was actually received by the peer even though Ack was not reported");
3288 p2p_dbg(p2p, "Peer expected to wait our response - skip listen");
3342 p2p_dbg(p2p, "Unknown GO Neg peer - stop GO Neg wait");
3348 p2p_dbg(p2p, "Timeout on waiting peer to become ready for GO Negotiation");
3353 p2p_dbg(p2p, "Go to Listen state while waiting for the peer to become ready for GO Negotiation");
3533 p2p_dbg(p2p, "Local request to reject connection attempts by peer "
3536 p2p_dbg(p2p, "Peer " MACSTR " unknown", MAC2STR(peer_addr));
4218 p2p_dbg(p2p, "Disable peer filter");
4220 p2p_dbg(p2p, "Enable peer filter for " MACSTR,
4573 void (*peer_callback)(struct p2p_peer_info *peer,
4709 params->peer = &dev->info;
4727 p2p_dbg(p2p, "Unknown peer OOB GO Neg channel");
4733 p2p_dbg(p2p, "Peer OOB GO operating channel: %u MHz", freq);
4736 p2p_dbg(p2p, "Peer (client) OOB GO operating channel: %u MHz",
4740 p2p_dbg(p2p, "Peer OOB GO Neg channel: %u MHz", freq);