Merge "frameworks/base: stop find before issuing wps pbc."
This commit is contained in:
@ -1731,6 +1731,8 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
|
|||||||
//Ignore more client requests
|
//Ignore more client requests
|
||||||
break;
|
break;
|
||||||
case PEER_CONNECTION_USER_ACCEPT:
|
case PEER_CONNECTION_USER_ACCEPT:
|
||||||
|
//Stop discovery to avoid failure due to channel switch
|
||||||
|
mWifiNative.p2pStopFind();
|
||||||
if (mSavedPeerConfig.wps.setup == WpsInfo.PBC) {
|
if (mSavedPeerConfig.wps.setup == WpsInfo.PBC) {
|
||||||
mWifiNative.startWpsPbc(mGroup.getInterface(), null);
|
mWifiNative.startWpsPbc(mGroup.getInterface(), null);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user