summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-07-12 01:01:15 +0100
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-11-19 23:12:38 +0000
commitd9c36b06c6730c80d2243852402656c622db87eb (patch)
tree087a0295aff13d77f79cec84df0f4dafcd3bb349 /wifi
parent4464943017e3bad84a15e1d4c7d5336fc61fd4c8 (diff)
downloadframeworks_base-d9c36b06c6730c80d2243852402656c622db87eb.zip
frameworks_base-d9c36b06c6730c80d2243852402656c622db87eb.tar.gz
frameworks_base-d9c36b06c6730c80d2243852402656c622db87eb.tar.bz2
Wifi: Allow configuration of the P2P ifname
ICS used the same wifi.interface as the regular wifi service. Let's use wifi.p2pinterface here, since they _can_ be different Change-Id: Iab68b245b33377271354c849bbe33725a26193f1
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/p2p/WifiP2pService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pService.java b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
index 039319d..135b418 100644
--- a/wifi/java/android/net/wifi/p2p/WifiP2pService.java
+++ b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
@@ -302,7 +302,7 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
mContext = context;
//STOPSHIP: get this from native side
- mInterface = "p2p0";
+ mInterface = SystemProperties.get("wifi.p2pinterface", "p2p0");
mActivityMgr = (ActivityManager)context.getSystemService(Activity.ACTIVITY_SERVICE);
mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI_P2P, 0, NETWORKTYPE, "");