Home | History | Annotate | Download | only in p2p

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)",
870 p2p_dbg(p2p, "Peer found with Listen frequency %d MHz (rx_time=%u.%06u)",
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
1100 p2p_dbg(p2p, "Peer not known anymore");
1494 * @dev: Selected peer device
1501 * Negotiation prior to having received peer information or for P2PS PD
1503 * p2p_reselect_channel() once the peer information is available.
1567 p2p_dbg(p2p, "Request to start group negotiation - peer=" MACSTR
1601 * First, try to connect directly. If the peer does not
1680 p2p_dbg(p2p, "Request to authorize group negotiation - peer=" MACSTR
1734 p2p_dbg(p2p, "Unknown peer Listen channel: "
1742 p2p_dbg(p2p, "Update peer " MACSTR
1805 void p2p_go_complete(struct p2p_data *p2p, struct p2p_device *peer)
1808 int go = peer->go_state == LOCAL_GO;
1812 MAC2STR(peer->info.p2p_device_addr), go ? "local end" : "peer");
1816 os_memcpy(res.peer_device_addr, peer->info.p2p_device_addr, ETH_ALEN);
1817 os_memcpy(res.peer_interface_addr, peer->intended_addr, ETH_ALEN);
1818 res.wps_method = peer->wps_method;
1819 if (peer->flags & P2P_DEV_PREFER_PERSISTENT_GROUP) {
1820 if (peer->flags & P2P_DEV_PREFER_PERSISTENT_RECONN)
1834 res.freq = peer->oper_freq;
1842 p2p_channels_dump(p2p, "peer channels", &peer->channels);
1843 p2p_channels_intersect(&p2p->channels, &peer->channels,
1854 res.peer_config_timeout = go ? peer->client_timeout : peer->go_timeout;
1858 peer->go_neg_req_sent = 0;
1859 peer->flags &= ~P2P_DEV_PEER_WAITING_RESPONSE;
1860 peer->wps_method = WPS_NOT_READY;
1861 peer->oob_pw_id = 0;
1862 wpabuf_free(peer->go_neg_conf);
1863 peer->go_neg_conf = NULL;
2054 * peer entry based on this frames.
2073 "Updated peer " MACSTR " Listen channel (Probe Request): %d -> %d MHz",
2528 * Request frame is from an expected peer. Some devices may share the
2532 * frame from a P2P peer.
2539 /* Received a Probe Request from GO Negotiation peer */
2540 p2p_dbg(p2p, "Found GO Negotiation peer - try to start GO negotiation from timeout");
2551 /* Received a Probe Request from Invite peer */
2552 p2p_dbg(p2p, "Found Invite peer - try to start Invite from timeout");
2628 struct p2p_device *peer;
2663 peer = bssid ? p2p_get_device(p2p, bssid) : NULL;
2670 p2p_buf_add_device_info(tmp, p2p, peer);
2906 MACSTR " (GO Negotiation peer " MACSTR ")",
2909 return; /* Ignore unexpected peer address */
3078 /* Check if after_scan_tx is for this peer. If so free it */
3331 p2p_dbg(p2p, "No SD peer entry known");
3350 /* Wait for response from the peer */
3365 * Retry the prov disc req attempt only for the peer that the user had
3422 * If after PD Request the peer doesn't expect to receive PD Response
3467 /* Wait for response from the peer */
3655 p2p_dbg(p2p, "Peer " MACSTR " did not acknowledge request - try to use device discoverability through its GO",
3672 * Peer is expected to wait our response and we will skip the
3675 * sync with peer not listening.
3765 * often showing failure even when the peer has actually
3766 * received the frame. Since the peer may change channels
3770 * peer did indeed receive the frame, continue regardless of
3773 p2p_dbg(p2p, "Assume GO Negotiation Confirm TX was actually received by the peer even though Ack was not reported");
3952 p2p_dbg(p2p, "Peer expected to wait our response - skip listen");
4005 p2p_dbg(p2p, "Unknown GO Neg peer - stop GO Neg wait");
4009 p2p_dbg(p2p, "Go to Listen state while waiting for the peer to become ready for GO Negotiation");
4202 p2p_dbg(p2p, "Local request to reject connection attempts by peer "
4205 p2p_dbg(p2p, "Peer " MACSTR " unknown", MAC2STR(peer_addr));
4902 p2p_dbg(p2p, "Disable peer filter");
4904 p2p_dbg(p2p, "Enable peer filter for " MACSTR,
5271 void (*peer_callback)(struct p2p_peer_info *peer,
5407 params->peer = &dev->info;
5426 p2p_dbg(p2p, "Unknown peer OOB GO Neg channel");
5433 p2p_dbg(p2p, "Peer OOB GO operating channel: %u MHz", freq);
5436 p2p_dbg(p2p, "Peer (client) OOB GO operating channel: %u MHz",
5440 p2p_dbg(p2p, "Peer OOB GO Neg channel: %u MHz", freq);
5534 "Timeout on waiting peer to become ready for GO Negotiation");