Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5c6166c authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android Git Automerger
Browse files

am 9648a484: am cdd03f54: Merge "Try go-negotiation when invocation request is deferred."

* commit '9648a484':
  Try go-negotiation when invocation request is deferred.
parents 19c84ea6 9648a484
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -1375,7 +1375,18 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
                            removeClientFromList(netId, mSavedPeerConfig.deviceAddress, true);
                        }

                        // invocation is failed or deferred. Try another way to connect.
                        // invocation is failed. Try another way to connect.
                        mSavedPeerConfig.netId = WifiP2pGroup.PERSISTENT_NET_ID;
                        if (connect(mSavedPeerConfig, NO_REINVOCATION) == CONNECT_FAILURE) {
                            handleGroupCreationFailure();
                            transitionTo(mInactiveState);
                        }
                    } else if (status == P2pStatus.INFORMATION_IS_CURRENTLY_UNAVAILABLE) {

                        // Devices setting persistent_reconnect to 0 in wpa_supplicant
                        // always defer the invocation request and return
                        // "information is currently unable" error.
                        // So, try another way to connect for interoperability.
                        mSavedPeerConfig.netId = WifiP2pGroup.PERSISTENT_NET_ID;
                        if (connect(mSavedPeerConfig, NO_REINVOCATION) == CONNECT_FAILURE) {
                            handleGroupCreationFailure();