P2P NFC: Static handover with NFC Tag on client
This adds a new P2P Invitation mechanism to invite a P2P Device with an NFC Tag to an already operating group when the GO with NFC Device reads the NFC Tag. The P2P Device with the NFC Tag will then accept invitation and connect to the group automatically using its OOB Device Password. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
dd87677115
commit
8e9f53c367
6 changed files with 91 additions and 21 deletions
|
@ -1762,7 +1762,8 @@ static void p2p_invite_start(void *eloop_ctx, void *timeout_ctx)
|
|||
if (p2p->invite_peer == NULL)
|
||||
return;
|
||||
p2p->cfg->stop_listen(p2p->cfg->cb_ctx);
|
||||
p2p_invite_send(p2p, p2p->invite_peer, p2p->invite_go_dev_addr);
|
||||
p2p_invite_send(p2p, p2p->invite_peer, p2p->invite_go_dev_addr,
|
||||
p2p->invite_dev_pw_id);
|
||||
}
|
||||
|
||||
|
||||
|
@ -3277,7 +3278,7 @@ static void p2p_timeout_invite_listen(struct p2p_data *p2p)
|
|||
if (p2p->invite_peer && p2p->invite_peer->invitation_reqs < 100) {
|
||||
p2p_set_state(p2p, P2P_INVITE);
|
||||
p2p_invite_send(p2p, p2p->invite_peer,
|
||||
p2p->invite_go_dev_addr);
|
||||
p2p->invite_go_dev_addr, p2p->invite_dev_pw_id);
|
||||
} else {
|
||||
if (p2p->invite_peer) {
|
||||
p2p_dbg(p2p, "Invitation Request retry limit reached");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue