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

Commit 09d28d1d authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

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
parent 95331013
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,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, "");