summaryrefslogtreecommitdiffstats
path: root/service/java/com/android/server/wifi/WifiNative.java
diff options
context:
space:
mode:
Diffstat (limited to 'service/java/com/android/server/wifi/WifiNative.java')
-rw-r--r--service/java/com/android/server/wifi/WifiNative.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiNative.java b/service/java/com/android/server/wifi/WifiNative.java
index ce2b3e7a1..52a5e43d2 100644
--- a/service/java/com/android/server/wifi/WifiNative.java
+++ b/service/java/com/android/server/wifi/WifiNative.java
@@ -1337,6 +1337,7 @@ public class WifiNative {
private static native boolean stopScanNative(int iface, int id);
private static native WifiScanner.ScanData[] getScanResultsNative(int iface, boolean flush);
private static native WifiLinkLayerStats getWifiLinkLayerStatsNative(int iface);
+ private static native void setWifiLinkLayerStatsNative(int iface, int enable);
public static class ChannelSettings {
int frequency;
@@ -1735,6 +1736,15 @@ public class WifiNative {
}
}
+ synchronized public static void setWifiLinkLayerStats(String iface, int enable) {
+ if (iface == null) return;
+ synchronized (mLock) {
+ if (sWifiHalHandle != 0) {
+ setWifiLinkLayerStatsNative(sWlan0Index, enable);
+ }
+ }
+ }
+
public static native int getSupportedFeatureSetNative(int iface);
synchronized public static int getSupportedFeatureSet() {
synchronized (mLock) {