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

* commit 'b3acd8ef263e17879e9a13c3dacd123bd0670c3b':
  wifi: Do not use prefix for p2p commands
This commit is contained in:
Dmitry Shmidt
2013-08-16 16:50:00 -07:00
committed by Android Git Automerger

View File

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