P2P: Skip Extended Listen timeout to allow scans during group formation
Scans are allowed on the current interface for group formation only when in the P2P_SEARCH, P2P_IDLE, or P2P_PROVISIONING state. But Extended Listen timeout being enabled moves to the P2P_LISTEN_ONLY state. Due to this P2P connection fails if the GO is not found with scans triggerred before Extended Listen timeout. To avoid this skip Extended Listen timeout to allow scans during group formation on the current interface. Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
This commit is contained in:
parent
cff55f3482
commit
368de263bc
1 changed files with 4 additions and 0 deletions
|
@ -8507,6 +8507,10 @@ int wpas_p2p_in_progress(struct wpa_supplicant *wpa_s)
|
|||
"in group formation",
|
||||
wpa_s->global->p2p_group_formation->ifname);
|
||||
ret = 1;
|
||||
} else if (wpa_s->global->p2p_group_formation == wpa_s) {
|
||||
wpa_dbg(wpa_s, MSG_DEBUG,
|
||||
"P2P: Skip Extended Listen timeout and allow scans on current interface for group formation");
|
||||
ret = 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue