wifi: Do not use prefix for p2p commands

Bug: 9298955

Change-Id: I73dab83d133ab3a79cdf804764ba0583a6c9af7f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt
2013-08-14 12:59:23 -07:00
parent 80f7ec06d0
commit 2de3a5762f

View File

@@ -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() {