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

Jouni Malinen j
Sat Aug 24 23:44:51 PDT 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