diff options
author | Michael Plass <mplass@google.com> | 2017-03-28 16:13:20 -0700 |
---|---|---|
committer | Michael Plass <mplass@google.com> | 2017-03-29 11:15:44 -0700 |
commit | eb37292950237a906c4220acfc03406db2ef44cb (patch) | |
tree | 54193c88db4a3b8f7ebf30f75f1fccf81f96d780 | |
parent | b899ef2490b0c772822c606bd04bcb2f20e88db0 (diff) |
Remove WifiNative.setLinkLayerStats
Link layer stats are always enabled now, so remove this unneeded call.
Similarly for setDfsFlag() - DFS is always on.
Bug: 36087365
Test: Unit tests pass
Change-Id: I05a971b3fa9ac17f41990ace125733570de55f4c
3 files changed, 0 insertions, 31 deletions
diff --git a/service/java/com/android/server/wifi/WifiNative.java b/service/java/com/android/server/wifi/WifiNative.java index f6a7e7c39..541be9c5a 100644 --- a/service/java/com/android/server/wifi/WifiNative.java +++ b/service/java/com/android/server/wifi/WifiNative.java @@ -1051,10 +1051,6 @@ public class WifiNative { return mWifiVendorHal.getWifiLinkLayerStats(); } - public void setWifiLinkLayerStats(String iface, int enable) { - // TODO(b//36087365) Remove this. Link layer stats is enabled when the HAL is started. - } - /** * Get the supported features * @@ -1143,16 +1139,6 @@ public class WifiNative { } /** - * Set DFS - actually, this is always on. - * - * @param dfsOn - * @return success indication - */ - public boolean setDfsFlag(boolean dfsOn) { - return mWifiVendorHal.setDfsFlag(dfsOn); - } - - /** * RTT (Round Trip Time) measurement capabilities of the device. */ public RttManager.RttCapabilities getRttCapabilities() { diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java index d8971ae8b..e8d85cd75 100644 --- a/service/java/com/android/server/wifi/WifiStateMachine.java +++ b/service/java/com/android/server/wifi/WifiStateMachine.java @@ -4096,9 +4096,6 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss mWifiNative.setExternalSim(true); - /* turn on use of DFS channels */ - mWifiNative.setDfsFlag(true); - setRandomMacOui(); mCountryCode.setReadyForChange(true); @@ -4168,9 +4165,6 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss intent.putExtra(WifiManager.EXTRA_SCAN_AVAILABLE, WIFI_STATE_ENABLED); mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); - // Enable link layer stats gathering - mWifiNative.setWifiLinkLayerStats("wlan0", 1); - // Disable wpa_supplicant from auto reconnecting. mWifiNative.enableStaAutoReconnect(false); // STA has higher priority over P2P diff --git a/service/java/com/android/server/wifi/WifiVendorHal.java b/service/java/com/android/server/wifi/WifiVendorHal.java index 8646b613b..9a73425dc 100644 --- a/service/java/com/android/server/wifi/WifiVendorHal.java +++ b/service/java/com/android/server/wifi/WifiVendorHal.java @@ -64,7 +64,6 @@ import android.net.wifi.WifiManager; import android.net.wifi.WifiScanner; import android.net.wifi.WifiSsid; import android.net.wifi.WifiWakeReasonAndCounts; -import android.os.HandlerThread; import android.os.Looper; import android.os.RemoteException; import android.util.MutableBoolean; @@ -1458,16 +1457,6 @@ public class WifiVendorHal { } /** - * Set DFS - actually, this is always on. - * - * @param dfsOn - * @return success indication - */ - public boolean setDfsFlag(boolean dfsOn) { - return dfsOn; - } - - /** * Get the APF (Android Packet Filter) capabilities of the device */ public ApfCapabilities getApfCapabilities() { |