am 17d89636: am 011b8efc: Merge "frameworks/base: stop find before issuing wps pbc."

* commit '17d89636530f4a5e4e77d3ae11e2e696a697cc64':
  frameworks/base: stop find before issuing wps pbc.
This commit is contained in:
Irfan Sheriff
2013-03-06 17:44:42 +00:00
committed by Android Git Automerger

View File

@@ -1745,6 +1745,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 {