Bug:
9298955
Change-Id: I73dab83d133ab3a79cdf804764ba0583a6c9af7f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
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() {