frameworks/base: stop find before issuing wps pbc.

Stop p2p find before issuing a PBC to avoid GO switching to other
channel leading connection failure.

Change-Id: I88906f944de1c85b143f96cb7b35724af19cd151
Signed-off-by: Deepthi Gowri <deepthi@codeaurora.org>
This commit is contained in:
Deepthi Gowri
2013-02-23 00:02:00 +05:30
parent d61ff77ee1
commit 575bb45e9d

View File

@@ -1731,6 +1731,8 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
//Ignore more client requests
break;
case PEER_CONNECTION_USER_ACCEPT:
//Stop discovery to avoid failure due to channel switch
mWifiNative.p2pStopFind();
if (mSavedPeerConfig.wps.setup == WpsInfo.PBC) {
mWifiNative.startWpsPbc(mGroup.getInterface(), null);
} else {