P2PS: Allow PD retry in SEARCH and LISTEN_ONLY also

p2p_timeout_prov_disc_req is getting triggered in P2P_IDLE,
P2P_SEARCH and P2P_LISTEN_ONLY states. Retry logic should not be
limited to only P2P_IDLE state.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Krishna Vamsi 2015-01-30 19:06:01 +05:30 committed by Jouni Malinen
parent 87d5ef5a41
commit ae2dd835be

View file

@ -3208,9 +3208,6 @@ static void p2p_retry_pd(struct p2p_data *p2p)
{ {
struct p2p_device *dev; struct p2p_device *dev;
if (p2p->state != P2P_IDLE)
return;
/* /*
* Retry the prov disc req attempt only for the peer that the user had * Retry the prov disc req attempt only for the peer that the user had
* requested. * requested.