hostapd/src/p2p
Neeraj Kumar Garg d58ed4e306 P2P: Reduce the idle time in Wait peer connect state
When waiting for go_neg frame from the peer in WAIT_PEER_CONNECT state,
I have observed that sometimes it takes 20 to 30 secs for successful GO
negotiation. I also found out that it is because of 1 second idle time,
in WAIT_PEER_CONNECT state. While it is good to have 1 second idle time
[for doing power-save or doing some other legacy STA Scan or some other
useful stuff], this makes GO Negotiation process slow.

We wait for 1 second idle and then listen for a random time between
100(min)-300(max) ms. Assume P1 is in WAIT_PEER_CONNECT state and P2 is
the one which is now to send go_neg frame. If P2 sends GO Negotiation
frame just at the boundary of 300 ms of P1 and assume that P2 takes
close to 600-800 ms for one iteration of sending go_neg request (one
iteration is GO Negotiation Request frame time + dwell time +
listen_time), P2 needs to transmit at least 16-18 Action frames for
hitting the listen time of P1.

Following patch reduces the idle time to 500 ms. Alternatively we can
increase the listen time interval to 500 ms just for WAIT_PEER_CONNECT
state.
2011-12-18 18:01:11 +02:00
..
Makefile P2P: Add initial version of P2P Module 2010-09-09 07:17:17 -07:00
p2p.c P2P: Reduce the idle time in Wait peer connect state 2011-12-18 18:01:11 +02:00
p2p.h P2P: Fix Provision Discovery channel for some join-GO cases 2011-12-18 17:21:25 +02:00
p2p_build.c P2P: Allow advertisement config methods to be limited 2011-09-08 16:48:06 +03:00
p2p_dev_disc.c P2P: Embed publically visible struct in peer info 2011-02-24 21:51:17 +02:00
p2p_go_neg.c P2P: Advertise Persistent Reconnect group capability 2011-10-24 17:29:37 +03:00
p2p_group.c P2P: Reject Presence Request if current NoA cannot be fetched 2011-12-11 17:07:41 +02:00
p2p_i.h P2P: Fix Provision Discovery channel for some join-GO cases 2011-12-18 17:21:25 +02:00
p2p_invitation.c P2P: Embed publically visible struct in peer info 2011-02-24 21:51:17 +02:00
p2p_parse.c P2P: Store more WPS attributes for peers 2011-03-28 15:27:10 +03:00
p2p_pd.c P2P: Fix PROBE_REQ_ONLY flag use for Provision Discovery Request 2011-12-18 17:42:11 +02:00
p2p_sd.c Use NULL instead of 0 for pointers 2011-11-18 22:07:30 +02:00
p2p_utils.c P2P: Reject multi-channel concurrent operations depending on driver 2010-10-14 14:24:56 +03:00