[PATCH] Add P2P IEs to probe requests only when in P2P

Jouni Malinen j
Mon Aug 13 11:53:39 PDT 2012


On Mon, Aug 13, 2012 at 04:59:44PM +0300, Eyal Shapira wrote:
> The current code caused P2P and consquently WPS IEs to be added
> to any probe as the check was for non null global->p2p.
> global->p2p gets set whenever P2P is initialized globally
> and that occurs on the first interface init.

This is done on purpose since "normal scans" can be used to discover P2P
groups and to allow other devices discover us. The P2P element (and WPS
IE if no active WPS operation is in progress) are removed if P2P is
disabled.

> Fix this by indicating wps is in use only when in active P2P
> discovery or connection establishement.
> (i.e. not P2P_IDLE - either doing search, neg or provisioning)

What does this fix?

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list