[PATCH 1/1] P2P: Clear the discovery state incase of deffered GO Neg response

Jithu Jance jithujance at gmail.com
Tue Aug 12 14:05:19 EDT 2014


Hi Jouni,


> Hmm.. This sounds problematic. Wouldn't the change allow anyone to stop
> P2P discovery simply by sending a GO Neg Req frame to this device?

That's true. But I am assuming that since there is a connection
attempt from the peer, there
would be a user input from the current device side (whether to accept
the connection or deny
incoming connection). In the denial context, the discovery state can
be restarted by a fresh p2p_find.
But yes, this will block other incoming connect request till upper
layer/user finishes the action for the previous request. This is just
a thought. I am not sure whether this is the right approach. Please
advise.

Actually the p2p_continue_find was not getting invoked in this
scenario and p2p_state was stuck in
P2P_SEARCH. so either we need to do p2p_continue_find or come out of
discovery till we get a user input.
If you think that we need to continue the discovery state, (P2P_SEARCH
or LISTEN_ONLY state), I will send
a patch accordingly.


More information about the HostAP mailing list