[PATCH] P2P: Fix problem with connecting to non-P2P network in P2P mode
Sun Jun 24 23:41:23 PDT 2012
2012/6/24 Jouni Malinen <j at w1.fi>:
> On Thu, May 17, 2012 at 04:11:34PM +0200, Klimczewski Marcin wrote:
>> This patch allows connection to non-P2P network in P2P mode. In P2P
>> mode, attempt to connect to non-P2P network always fails due to handling
>> scan results in P2P specific way and scan process looping itself. To
>> solve it wpas_p2p_stop_find() is called just after invoking scan request.
>> To allow to connect to non-P2P network in P2P mode,
>> p2p_stop_find is called just after invoking scan request.
> This looks a bit too low-level location to call wpas_p2p_stop_find(),
> i.e., if the P2P device discovery needs to be stopped, that should
> probably happen when a connection is being requested in the first place
> rather than when a scan request (which may be used for other purposes,
> too) is being processed.
This fix solve problem we have during such test case:
1) add and configure network 0
2) run p2p_scan
3) enable_network 0
Seems step-3 don't work because of p2p_scan.
So, the question is if supplicant should stop p2p_scan or this should
be solve in upper layer?
More information about the Hostap