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

Commit 07c1bd79 authored by Dmitry Shmidt's avatar Dmitry Shmidt Committed by Android Git Automerger
Browse files

am b3acd8ef: Merge "wifi: Do not use prefix for p2p commands" into klp-dev

* commit 'b3acd8ef':
  wifi: Do not use prefix for p2p commands
parents 150efdea b3acd8ef
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() {