P2P: Unauthorize pending P2P GO Neg peer on p2p_cancel
If there is a pending GO Negotiation when p2p_cancel is used, unauthorize the peer to avoid immediate reconnection from being accepted without a new p2p_connect command.
This commit is contained in:
parent
0a14e3ec8b
commit
231bbd0375
3 changed files with 18 additions and 0 deletions
|
@ -3211,3 +3211,11 @@ void p2p_set_best_channels(struct p2p_data *p2p, int freq_24, int freq_5,
|
|||
p2p->best_freq_5 = freq_5;
|
||||
p2p->best_freq_overall = freq_overall;
|
||||
}
|
||||
|
||||
|
||||
const u8 * p2p_get_go_neg_peer(struct p2p_data *p2p)
|
||||
{
|
||||
if (p2p == NULL || p2p->go_neg_peer == NULL)
|
||||
return NULL;
|
||||
return p2p->go_neg_peer->p2p_device_addr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue