summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRockchip2015-09-02 16:51:20 +0800
committerRockchip2015-09-02 16:51:20 +0800
commit37f7fdc8dc715a9c887719f57968caf1bcacae96 (patch)
treea92f49de92dd5956f5d4b5af54e0b6e51ec5d6e5
parentc9548ebbca2d81b32d55d573fefdfa79cc22488e (diff)
P2P: modify to work compatibly for some WFD sink devices which unsupport invitation.
Signed-off-by: Rockchip <service@rock-chips.com>
-rw-r--r--service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java
index 1c04e43..35accea 100644
--- a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java
+++ b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java
@@ -1727,8 +1727,10 @@ public final class WifiP2pServiceImpl extends IWifiP2pManager.Stub {
// 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;
- p2pConnectWithPinDisplay(mSavedPeerConfig);
+ // modify to work compatibly for some WFD sink devices which unsupport invitation.(gwl)
+ //mSavedPeerConfig.netId = WifiP2pGroup.PERSISTENT_NET_ID;
+ //p2pConnectWithPinDisplay(mSavedPeerConfig);
+ transitionTo(mProvisionDiscoveryState);
} else if (status == P2pStatus.NO_COMMON_CHANNEL) {
transitionTo(mFrequencyConflictState);
} else {