diff options
author | Robert Greenwalt <robdroid@android.com> | 2009-10-21 14:58:34 -0700 |
---|---|---|
committer | Robert Greenwalt <robdroid@android.com> | 2009-10-21 15:03:44 -0700 |
commit | e2d155a51e68694e17fa6e27d05c928215a5dbcf (patch) | |
tree | d092da97d68fc4adf8aa2536f452af3f8cd700b1 /services | |
parent | 3f9faf473712be7d6471913b921bf8a63ab3205d (diff) | |
download | frameworks_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.java | 13 |
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(); |