[PATCH v2] P2P: prevent p2pdev from roaming

Arend van Spriel arend
Mon Dec 1 04:04:23 PST 2014

On 12/01/14 11:54, Jouni Malinen wrote:
> On Mon, Dec 01, 2014 at 10:54:11AM +0100, Michal Kazior wrote:
>> It was possible for a P2P_DEVICE to receive scan results and
>> subsequently start roaming due to a matching network. This caused
>> P2P find stop working (state machines seemed to be confused).
> How did you get an enabled network block (other than persistent group
> information) configured for P2P_DEVICE instance? The change itself looks
> fine, but should really not be needed since there are not supposed to be
> enabled network blocks configured for p2p-dev-*.

That may be true, but that was not in the code as such. The p2p-dev 
wpa_s gets the main configuration applied without any filtering when no 
-m config is specified. My just posted patches try to fix that skipping 
network parsing, but still not sure if that is the best way. Could also 
disable/remove the networks from the p2p-dev config after parsing completes.


More information about the Hostap mailing list