Lines Matching refs:peer
41 * P2P_PEER_EXPIRATION_AGE - Number of seconds after which inactive peer
94 * peer is the GO, so do not expire the peer entry.
107 * The peer is connected as a client in a group where
108 * we are the GO, so do not expire the peer entry.
115 /* If Connection is in progress, don't expire the peer
121 p2p_dbg(p2p, "Expiring old peer entry " MACSTR,
241 void p2p_go_neg_failed(struct p2p_data *p2p, struct p2p_device *peer,
255 if (peer) {
256 os_memcpy(res.peer_device_addr, peer->info.p2p_device_addr,
258 os_memcpy(res.peer_interface_addr, peer->intended_addr,
367 * p2p_get_device - Fetch a peer entry
369 * @addr: P2P Device Address of the peer
384 * p2p_get_device_interface - Fetch a peer entry based on P2P Interface Address
386 * @addr: P2P Interface Address of the peer
402 * p2p_create_device - Create a peer entry
404 * @addr: P2P Device Address of the peer
407 * If there is already an entry for the peer, it will be returned instead of
427 p2p_dbg(p2p, "Remove oldest peer entry to make room for a new peer");
617 p2p_dbg(p2p, "Update peer " MACSTR
629 * p2p_add_device - Add peer entries based on scan results or P2P frames
633 * @level: Signal level (signal strength of the received frame from the peer)
642 * to the peer table. This function can also be used with some other frames
675 p2p_dbg(p2p, "Do not add peer filter for " MACSTR
676 " due to peer filter", MAC2STR(p2p_dev_addr));
693 * Update the device entry only if the new peer
698 p2p_dbg(p2p, "Do not update peer entry based on old frame (rx_time=%u.%06u last_seen=%u.%06u)",
782 p2p_dbg(p2p, "Peer found with Listen frequency %d MHz (rx_time=%u.%06u)",
796 * events, postpone reporting this peer until we've fully
799 * At least for now, do this only if the peer was detected on
800 * one of the social channels since that peer can be easily be
806 p2p_dbg(p2p, "Do not report peer " MACSTR
1000 p2p_dbg(p2p, "Peer not known anymore");
1294 * @dev: Selected peer device
1300 * Negotiation prior to having received peer information. The selected channel
1301 * may be further optimized in p2p_reselect_channel() once the peer information
1357 p2p_dbg(p2p, "Request to start group negotiation - peer=" MACSTR
1389 * First, try to connect directly. If the peer does not
1467 p2p_dbg(p2p, "Request to authorize group negotiation - peer=" MACSTR
1519 p2p_dbg(p2p, "Unknown peer Listen channel: "
1527 p2p_dbg(p2p, "Update peer " MACSTR
1583 void p2p_go_complete(struct p2p_data *p2p, struct p2p_device *peer)
1586 int go = peer->go_state == LOCAL_GO;
1592 MAC2STR(peer->info.p2p_device_addr), go ? "local end" : "peer");
1596 os_memcpy(res.peer_device_addr, peer->info.p2p_device_addr, ETH_ALEN);
1597 os_memcpy(res.peer_interface_addr, peer->intended_addr, ETH_ALEN);
1598 res.wps_method = peer->wps_method;
1599 if (peer->flags & P2P_DEV_PREFER_PERSISTENT_GROUP) {
1600 if (peer->flags & P2P_DEV_PREFER_PERSISTENT_RECONN)
1614 res.freq = peer->oper_freq;
1621 p2p_channels_intersect(&p2p->channels, &peer->channels,
1639 res.peer_config_timeout = go ? peer->client_timeout : peer->go_timeout;
1643 peer->go_neg_req_sent = 0;
1644 peer->wps_method = WPS_NOT_READY;
1831 * peer entry based on this frames.
2157 /* Received a Probe Request from GO Negotiation peer */
2158 p2p_dbg(p2p, "Found GO Negotiation peer - try to start GO negotiation from timeout");
2168 /* Received a Probe Request from Invite peer */
2169 p2p_dbg(p2p, "Found Invite peer - try to start Invite from timeout");
2233 struct p2p_device *peer;
2261 peer = bssid ? p2p_get_device(p2p, bssid) : NULL;
2268 p2p_buf_add_device_info(tmp, p2p, peer);
2351 MACSTR " (GO Negotiation peer " MACSTR ")",
2354 return; /* Ignore unexpected peer address */
2517 /* Check if after_scan_tx is for this peer. If so free it */
2678 * There may be a scenario, where a particular peer device have
2682 * we will always continue to send SD requests always to that peer only.
2684 * This implementation keeps track of last serviced peer device.
2738 p2p_dbg(p2p, "No SD peer entry known");
2743 /* Wait for response from the peer */
2761 * Retry the prov disc req attempt only for the peer that the user had
2829 /* Wait for response from the peer */
2950 p2p_dbg(p2p, "Peer " MACSTR " did not acknowledge request - try to use device discoverability through its GO",
2967 * Peer is expected to wait our response and we will skip the
2970 * sync with peer not listening.
3023 * often showing failure even when the peer has actually
3024 * received the frame. Since the peer may change channels
3028 * peer did indeed receive the frame, continue regardless of
3031 peer even though Ack was not reported");
3209 p2p_dbg(p2p, "Peer expected to wait our response - skip listen");
3257 p2p_dbg(p2p, "Unknown GO Neg peer - stop GO Neg wait");
3263 p2p_dbg(p2p, "Timeout on waiting peer to become ready for GO Negotiation");
3268 p2p_dbg(p2p, "Go to Listen state while waiting for the peer to become ready for GO Negotiation");
3452 p2p_dbg(p2p, "Local request to reject connection attempts by peer "
3455 p2p_dbg(p2p, "Peer " MACSTR " unknown", MAC2STR(peer_addr));
4074 p2p_dbg(p2p, "Disable peer filter");
4076 p2p_dbg(p2p, "Enable peer filter for " MACSTR,