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

Commit 2de3a576 authored by Dmitry Shmidt's avatar Dmitry Shmidt
Browse files

wifi: Do not use prefix for p2p commands



Bug: 9298955

Change-Id: I73dab83d133ab3a79cdf804764ba0583a6c9af7f
Signed-off-by: default avatarDmitry Shmidt <dimitrysh@google.com>
parent 80f7ec06
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -82,8 +82,13 @@ public class WifiNative {

    public WifiNative(String interfaceName) {
        mInterfaceName = interfaceName;
        mInterfacePrefix = "IFNAME=" + interfaceName + " ";
        mTAG = "WifiNative-" + interfaceName;
        if (!interfaceName.equals("p2p0")) {
            mInterfacePrefix = "IFNAME=" + interfaceName + " ";
        } else {
            // commands for p2p0 interface don't need prefix
            mInterfacePrefix = "";
        }
    }

    public boolean connectToSupplicant() {