[PATCH] STA: Fix AP connection drop issue when starting P2P scanning

Jouni Malinen j at w1.fi
Sun Aug 25 02:44:51 EDT 2013


On Tue, Aug 13, 2013 at 12:56:14PM +0000, 赵兵 wrote:
> On Android, there is an issue of STA dropping from AP when P2P scanning.
> Following is the reproduce steps:
> 1. Close WiFi
> 2. Open WiFi and wait for connecting to a saved AP
> 3. When AP connected, go into WiFi direct screen immediately
> 4. Wait for P2P scan for a while, the connection with AP will drop
> 
> The reproduce rate is almost 100%. The root cause is wpas_p2p_scan()
> possibly triggers an AP scan if sta_scan_pending is set. At this time,
> scan_req is 0 and ap_scan is 2. So wpa_supplicant_assoc_try() will be
> invoked from wpa_supplicant_scan(). It disassoc current AP.

I think the root cause would actually be in using ap_scan=2 for
something that it was not meant for. The proper fix is to stop doing
that (which has now happened). As such, I'm not planning on applying
this into wpa_supplicant.

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list