Lines Matching refs:peer

45  * P2P_PEER_EXPIRATION_AGE - Number of seconds after which inactive peer
66 * GO Negotiation is in progress with the peer, so
67 * don't expire the peer entry until GO Negotiation
78 * peer is the GO, so do not expire the peer entry.
91 * The peer is connected as a client in a group where
92 * we are the GO, so do not expire the peer entry.
98 p2p_dbg(p2p, "Expiring old peer entry " MACSTR,
223 struct p2p_device *peer = p2p->go_neg_peer;
225 if (!peer)
238 peer->flags &= ~P2P_DEV_PEER_WAITING_RESPONSE;
239 peer->wps_method = WPS_NOT_READY;
240 peer->oob_pw_id = 0;
241 wpabuf_free(peer->go_neg_conf);
242 peer->go_neg_conf = NULL;
247 os_memcpy(res.peer_device_addr, peer->info.p2p_device_addr, ETH_ALEN);
248 os_memcpy(res.peer_interface_addr, peer->intended_addr, ETH_ALEN);
371 * p2p_get_device - Fetch a peer entry
373 * @addr: P2P Device Address of the peer
388 * p2p_get_device_interface - Fetch a peer entry based on P2P Interface Address
390 * @addr: P2P Interface Address of the peer
406 * p2p_create_device - Create a peer entry
408 * @addr: P2P Device Address of the peer
411 * If there is already an entry for the peer, it will be returned instead of
431 p2p_dbg(p2p, "Remove oldest peer entry to make room for a new peer");
621 p2p_dbg(p2p, "Update peer " MACSTR
691 * p2p_add_device - Add peer entries based on scan results or P2P frames
695 * @level: Signal level (signal strength of the received frame from the peer)
704 * to the peer table. This function can also be used with some other frames
739 p2p_dbg(p2p, "Do not add peer filter for " MACSTR
740 " due to peer filter", MAC2STR(p2p_dev_addr));
757 * Update the device entry only if the new peer
768 "Do not update peer entry based on old frame (rx_time=%u.%06u last_seen=%u.%06u flags=0x%x)",
886 * events, postpone reporting this peer until we've fully
889 * At least for now, do this only if the peer was detected on
890 * one of the social channels since that peer can be easily be
896 p2p_dbg(p2p, "Do not report peer " MACSTR
1485 * @dev: Selected peer device
1492 * Negotiation prior to having received peer information or for P2PS PD
1494 * p2p_reselect_channel() once the peer information is available.
1558 p2p_dbg(p2p, "Request to start group negotiation - peer=" MACSTR
1592 * First, try to connect directly. If the peer does not
1659 p2p_dbg(p2p, "Request to authorize group negotiation - peer=" MACSTR
1713 p2p_dbg(p2p, "Unknown peer Listen channel: "
1721 p2p_dbg(p2p, "Update peer " MACSTR
1784 void p2p_go_complete(struct p2p_data *p2p, struct p2p_device *peer)
1787 int go = peer->go_state == LOCAL_GO;
1791 MAC2STR(peer->info.p2p_device_addr), go ? "local end" : "peer");
1795 os_memcpy(res.peer_device_addr, peer->info.p2p_device_addr, ETH_ALEN);
1796 os_memcpy(res.peer_interface_addr, peer->intended_addr, ETH_ALEN);
1797 res.wps_method = peer->wps_method;
1798 if (peer->flags & P2P_DEV_PREFER_PERSISTENT_GROUP) {
1799 if (peer->flags & P2P_DEV_PREFER_PERSISTENT_RECONN)
1813 res.freq = peer->oper_freq;
1821 p2p_channels_dump(p2p, "peer channels", &peer->channels);
1822 p2p_channels_intersect(&p2p->channels, &peer->channels,
1833 res.peer_config_timeout = go ? peer->client_timeout : peer->go_timeout;
1837 peer->go_neg_req_sent = 0;
1838 peer->flags &= ~P2P_DEV_PEER_WAITING_RESPONSE;
1839 peer->wps_method = WPS_NOT_READY;
1840 peer->oob_pw_id = 0;
1841 wpabuf_free(peer->go_neg_conf);
1842 peer->go_neg_conf = NULL;
2033 * peer entry based on this frames.
2052 "Updated peer " MACSTR " Listen channel (Probe Request): %d -> %d MHz",
2507 * Request frame is from an expected peer. Some devices may share the
2511 * frame from a P2P peer.
2518 /* Received a Probe Request from GO Negotiation peer */
2519 p2p_dbg(p2p, "Found GO Negotiation peer - try to start GO negotiation from timeout");
2530 /* Received a Probe Request from Invite peer */
2531 p2p_dbg(p2p, "Found Invite peer - try to start Invite from timeout");
2607 struct p2p_device *peer;
2642 peer = bssid ? p2p_get_device(p2p, bssid) : NULL;
2649 p2p_buf_add_device_info(tmp, p2p, peer);
2885 MACSTR " (GO Negotiation peer " MACSTR ")",
2888 return; /* Ignore unexpected peer address */
3301 p2p_dbg(p2p, "No SD peer entry known");
3320 /* Wait for response from the peer */
3335 * Retry the prov disc req attempt only for the peer that the user had
3392 * If after PD Request the peer doesn't expect to receive PD Response
3437 /* Wait for response from the peer */
3624 * sync with peer not listening.
3718 * often showing failure even when the peer has actually
3719 * received the frame. Since the peer may change channels
3723 * peer did indeed receive the frame, continue regardless of
3726 p2p_dbg(p2p, "Assume GO Negotiation Confirm TX was actually received by the peer even though Ack was not reported");
3966 p2p_dbg(p2p, "Unknown GO Neg peer - stop GO Neg wait");
3970 p2p_dbg(p2p, "Go to Listen state while waiting for the peer to become ready for GO Negotiation");
4163 p2p_dbg(p2p, "Local request to reject connection attempts by peer "
4866 p2p_dbg(p2p, "Disable peer filter");
4868 p2p_dbg(p2p, "Enable peer filter for " MACSTR,
5225 void (*peer_callback)(struct p2p_peer_info *peer,
5361 params->peer = &dev->info;
5380 p2p_dbg(p2p, "Unknown peer OOB GO Neg channel");
5488 "Timeout on waiting peer to become ready for GO Negotiation");