summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorRobert Greenwalt <robdroid@android.com>2009-10-21 14:58:34 -0700
committerRobert Greenwalt <robdroid@android.com>2009-10-21 15:03:44 -0700
commite2d155a51e68694e17fa6e27d05c928215a5dbcf (patch)
treed092da97d68fc4adf8aa2536f452af3f8cd700b1 /services
parent3f9faf473712be7d6471913b921bf8a63ab3205d (diff)
downloadframeworks_base-e2d155a51e68694e17fa6e27d05c928215a5dbcf.zip
frameworks_base-e2d155a51e68694e17fa6e27d05c928215a5dbcf.tar.gz
frameworks_base-e2d155a51e68694e17fa6e27d05c928215a5dbcf.tar.bz2
Add a new API for initing Wifi multicast filtering
Gets rid of the old method which generated Log noise. bug: 1973855
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/WifiService.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/services/java/com/android/server/WifiService.java b/services/java/com/android/server/WifiService.java
index 89d969d..370ee68 100644
--- a/services/java/com/android/server/WifiService.java
+++ b/services/java/com/android/server/WifiService.java
@@ -1829,6 +1829,19 @@ public class WifiService extends IWifiManager.Stub {
}
}
+ public void initializeMulticastFiltering() {
+ enforceMulticastChangePermission();
+
+ synchronized (mMulticasters) {
+ // if anybody had requested filters be off, leave off
+ if (mMulticasters.size() != 0) {
+ return;
+ } else {
+ WifiNative.startPacketFiltering();
+ }
+ }
+ }
+
public void acquireMulticastLock(IBinder binder, String tag) {
enforceMulticastChangePermission();