[PATCH 2/4] P2P: clear listen state during PD-in-FIND

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Arik Nemtsov <arik@xxxxxxxxxx>

drv->in_listen should be cleared whenever the state timeout is cleared, if
they were set together. If the flag is not cleared, the p2p_listen_end()
called during cancel-remain-on-channel will not restart the search,
relying on the state timeout function to do it.
Use the p2p_stop_listen_for_freq function to clear the listen state
properly.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@xxxxxxxxx>
---
 src/p2p/p2p_pd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/p2p/p2p_pd.c b/src/p2p/p2p_pd.c
index 93a0535..54b2ab4 100644
--- a/src/p2p/p2p_pd.c
+++ b/src/p2p/p2p_pd.c
@@ -1581,7 +1581,7 @@ out:
 					 report_config_methods);
 
 	if (p2p->state == P2P_PD_DURING_FIND) {
-		p2p_clear_timeout(p2p);
+		p2p_stop_listen_for_freq(p2p, 0);
 		p2p_continue_find(p2p);
 	}
 }
-- 
1.9.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux