summaryrefslogtreecommitdiffstats
path: root/wifi/java/android/net/wifi/p2p
diff options
context:
space:
mode:
authorDeepthi Gowri <deepthi@codeaurora.org>2013-02-23 00:02:00 +0530
committerDeepthi Gowri <deepthi@codeaurora.org>2013-03-06 08:24:03 +0530
commit575bb45e9d293c8fd4fe7667439a748f856209a8 (patch)
tree882437549c009ee3477ee985af61435dc17ff85c /wifi/java/android/net/wifi/p2p
parentd61ff77ee10b2c956df153e08b850e852ff5df57 (diff)
downloadframeworks_base-575bb45e9d293c8fd4fe7667439a748f856209a8.zip
frameworks_base-575bb45e9d293c8fd4fe7667439a748f856209a8.tar.gz
frameworks_base-575bb45e9d293c8fd4fe7667439a748f856209a8.tar.bz2
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>
Diffstat (limited to 'wifi/java/android/net/wifi/p2p')
-rw-r--r--wifi/java/android/net/wifi/p2p/WifiP2pService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pService.java b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
index 0305777..532148e 100644
--- a/wifi/java/android/net/wifi/p2p/WifiP2pService.java
+++ b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
@@ -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 {