From d9c36b06c6730c80d2243852402656c622db87eb Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Thu, 12 Jul 2012 01:01:15 +0100 Subject: 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 --- wifi/java/android/net/wifi/p2p/WifiP2pService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wifi') 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, ""); -- cgit v1.1