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");
619 p2p_dbg(p2p, "Update peer " MACSTR
689 * p2p_add_device - Add peer entries based on scan results or P2P frames
693 * @level: Signal level (signal strength of the received frame from the peer)
702 * to the peer table. This function can also be used with some other frames
737 p2p_dbg(p2p, "Do not add peer filter for " MACSTR
738 " due to peer filter", MAC2STR(p2p_dev_addr));
755 * Update the device entry only if the new peer
766 "Do not update peer entry based on old frame (rx_time=%u.%06u last_seen=%u.%06u flags=0x%x)",
884 * events, postpone reporting this peer until we've fully
887 * At least for now, do this only if the peer was detected on
888 * one of the social channels since that peer can be easily be
894 p2p_dbg(p2p, "Do not report peer " MACSTR
1483 * @dev: Selected peer device
1490 * Negotiation prior to having received peer information or for P2PS PD
1492 * p2p_reselect_channel() once the peer information is available.
1556 p2p_dbg(p2p, "Request to start group negotiation - peer=" MACSTR
1590 * First, try to connect directly. If the peer does not
1657 p2p_dbg(p2p, "Request to authorize group negotiation - peer=" MACSTR
1711 p2p_dbg(p2p, "Unknown peer Listen channel: "
1719 p2p_dbg(p2p, "Update peer " MACSTR
1782 void p2p_go_complete(struct p2p_data *p2p, struct p2p_device *peer)
1785 int go = peer->go_state == LOCAL_GO;
1789 MAC2STR(peer->info.p2p_device_addr), go ? "local end" : "peer");
1793 os_memcpy(res.peer_device_addr, peer->info.p2p_device_addr, ETH_ALEN);
1794 os_memcpy(res.peer_interface_addr, peer->intended_addr, ETH_ALEN);
1795 res.wps_method = peer->wps_method;
1796 if (peer->flags & P2P_DEV_PREFER_PERSISTENT_GROUP) {
1797 if (peer->flags & P2P_DEV_PREFER_PERSISTENT_RECONN)
1811 res.freq = peer->oper_freq;
1819 p2p_channels_dump(p2p, "peer channels", &peer->channels);
1820 p2p_channels_intersect(&p2p->channels, &peer->channels,
1831 res.peer_config_timeout = go ? peer->client_timeout : peer->go_timeout;
1835 peer->go_neg_req_sent = 0;
1836 peer->flags &= ~P2P_DEV_PEER_WAITING_RESPONSE;
1837 peer->wps_method = WPS_NOT_READY;
1838 peer->oob_pw_id = 0;
1839 wpabuf_free(peer->go_neg_conf);
1840 peer->go_neg_conf = NULL;
2031 * peer entry based on this frames.
2050 "Updated peer " MACSTR " Listen channel (Probe Request): %d -> %d MHz",
2505 * Request frame is from an expected peer. Some devices may share the
2509 * frame from a P2P peer.
2516 /* Received a Probe Request from GO Negotiation peer */
2517 p2p_dbg(p2p, "Found GO Negotiation peer - try to start GO negotiation from timeout");
2528 /* Received a Probe Request from Invite peer */
2529 p2p_dbg(p2p, "Found Invite peer - try to start Invite from timeout");
2605 struct p2p_device *peer;
2640 peer = bssid ? p2p_get_device(p2p, bssid) : NULL;
2647 p2p_buf_add_device_info(tmp, p2p, peer);
2883 MACSTR " (GO Negotiation peer " MACSTR ")",
2886 return; /* Ignore unexpected peer address */
3299 p2p_dbg(p2p, "No SD peer entry known");
3318 /* Wait for response from the peer */
3333 * Retry the prov disc req attempt only for the peer that the user had
3390 * If after PD Request the peer doesn't expect to receive PD Response
3435 /* Wait for response from the peer */
3622 * sync with peer not listening.
3712 * often showing failure even when the peer has actually
3713 * received the frame. Since the peer may change channels
3717 * peer did indeed receive the frame, continue regardless of
3720 p2p_dbg(p2p, "Assume GO Negotiation Confirm TX was actually received by the peer even though Ack was not reported");
3960 p2p_dbg(p2p, "Unknown GO Neg peer - stop GO Neg wait");
3964 p2p_dbg(p2p, "Go to Listen state while waiting for the peer to become ready for GO Negotiation");
4157 p2p_dbg(p2p, "Local request to reject connection attempts by peer "
4860 p2p_dbg(p2p, "Disable peer filter");
4862 p2p_dbg(p2p, "Enable peer filter for " MACSTR,
5219 void (*peer_callback)(struct p2p_peer_info *peer,
5355 params->peer = &dev->info;
5374 p2p_dbg(p2p, "Unknown peer OOB GO Neg channel");
5482 "Timeout on waiting peer to become ready for GO Negotiation");