diff options
| author | 2013-05-23 21:59:21 +0000 | |
|---|---|---|
| committer | 2013-05-23 21:59:22 +0000 | |
| commit | 130a27ae8d5775b066405f5d52f950b7fcbc7655 (patch) | |
| tree | ee3bfa99a9b500d485b1245a2a5472203397e7e6 | |
| parent | b735b151e7d4ef8c66b448599cedb4d0eb969d24 (diff) | |
| parent | fa0e6d523117e3d90a973ad42c1fe76325006635 (diff) | |
Merge "wifi: Use 'IFNAME=iface CMD' instead of 'CMD interface=iface Rest'"
| -rw-r--r-- | wifi/java/android/net/wifi/WifiNative.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/wifi/java/android/net/wifi/WifiNative.java b/wifi/java/android/net/wifi/WifiNative.java index f637e899ebf2..375a16071284 100644 --- a/wifi/java/android/net/wifi/WifiNative.java +++ b/wifi/java/android/net/wifi/WifiNative.java @@ -398,9 +398,9 @@ public class WifiNative { public boolean startWpsPbc(String iface, String bssid) { if (TextUtils.isEmpty(bssid)) { - return doBooleanCommand("WPS_PBC interface=" + iface); + return doBooleanCommand("IFNAME=" + iface + " WPS_PBC"); } else { - return doBooleanCommand("WPS_PBC interface=" + iface + " " + bssid); + return doBooleanCommand("IFNAME=" + iface + " WPS_PBC " + bssid); } } @@ -411,7 +411,7 @@ public class WifiNative { public boolean startWpsPinKeypad(String iface, String pin) { if (TextUtils.isEmpty(pin)) return false; - return doBooleanCommand("WPS_PIN interface=" + iface + " any " + pin); + return doBooleanCommand("IFNAME=" + iface + " WPS_PIN any " + pin); } @@ -425,9 +425,9 @@ public class WifiNative { public String startWpsPinDisplay(String iface, String bssid) { if (TextUtils.isEmpty(bssid)) { - return doStringCommand("WPS_PIN interface=" + iface + " any"); + return doStringCommand("IFNAME=" + iface + " WPS_PIN any"); } else { - return doStringCommand("WPS_PIN interface=" + iface + " " + bssid); + return doStringCommand("IFNAME=" + iface + " WPS_PIN " + bssid); } } @@ -479,7 +479,7 @@ public class WifiNative { } public boolean setP2pGroupIdle(String iface, int time) { - return doBooleanCommand("SET interface=" + iface + " p2p_group_idle " + time); + return doBooleanCommand("IFNAME=" + iface + " SET p2p_group_idle " + time); } public void setPowerSave(boolean enabled) { @@ -492,9 +492,9 @@ public class WifiNative { public boolean setP2pPowerSave(String iface, boolean enabled) { if (enabled) { - return doBooleanCommand("P2P_SET interface=" + iface + " ps 1"); + return doBooleanCommand("IFNAME=" + iface + " P2P_SET ps 1"); } else { - return doBooleanCommand("P2P_SET interface=" + iface + " ps 0"); + return doBooleanCommand("IFNAME=" + iface + " P2P_SET ps 0"); } } |