Add a new API for initing Wifi multicast filtering
Gets rid of the old method which generated Log noise. bug: 1973855
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user