summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRebecca Silberstein <silberst@google.com>2017-03-30 15:54:55 -0700
committerRebecca Silberstein <silberst@google.com>2017-04-11 11:18:57 -0700
commit7df23a4c0aee6166602225af8e7220395b349e52 (patch)
treefb6c7f052ab4100f538d84626ab743a2cbbc0eb1 /service
parentc258cac284560bef4d8be2abae9ff50015d5f9d0 (diff)
WifiServiceImpl: test setWifiEnabled
Before adding mode checks, add unit tests to check current behavior. Bug: 36358238 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I8de27f2bceebb589b173d91d79dfa3a5afe6a675
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiServiceImpl.java b/service/java/com/android/server/wifi/WifiServiceImpl.java
index f915a6d4f..61d74fead 100644
--- a/service/java/com/android/server/wifi/WifiServiceImpl.java
+++ b/service/java/com/android/server/wifi/WifiServiceImpl.java
@@ -660,7 +660,7 @@ public class WifiServiceImpl extends IWifiManager.Stub {
}
// null wifiConfig is a meaningful input for CMD_SET_AP
if (wifiConfig == null || isValid(wifiConfig)) {
- mWifiController.obtainMessage(CMD_SET_AP, enabled ? 1 : 0, 0, wifiConfig).sendToTarget();
+ mWifiController.sendMessage(CMD_SET_AP, enabled ? 1 : 0, 0, wifiConfig);
} else {
Slog.e(TAG, "Invalid WifiConfiguration");
}