P2P: Fix missing eloop_cancel_timeout in invitation trigger
When a Probe Request frame from an invitation peer is received, a timer is schedule to start invitation. However, this could have been scheduled multiple times (once per Probe Request frame) which is undesirable since only a single invitation should be initiated. Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
This commit is contained in:
parent
3cdcb3a4b3
commit
aef5047acc
1 changed files with 1 additions and 0 deletions
|
@ -2143,6 +2143,7 @@ p2p_probe_req_rx(struct p2p_data *p2p, const u8 *addr, const u8 *dst,
|
|||
== 0) {
|
||||
/* Received a Probe Request from Invite peer */
|
||||
p2p_dbg(p2p, "Found Invite peer - try to start Invite from timeout");
|
||||
eloop_cancel_timeout(p2p_invite_start, p2p, NULL);
|
||||
eloop_register_timeout(0, 0, p2p_invite_start, p2p, NULL);
|
||||
return P2P_PREQ_PROCESSED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue