qcacld-3.0: Sync the count of filter entries in multicast to adapter

The count of multicast filter entries recorded in adapter
is not updated when uplayer delete multicast filter from
IP table. It causes FW can't receive the WMI command which
was used to delete multicast filter.

Change-Id: If1af16048e4a4f69673c4294d846b36e77bbcb5d
CRs-Fixed: 2349236
This commit is contained in:
stonez 2018-11-20 14:45:06 +08:00 • committed by nshrivas
commit df2bdfdd24

View file

@ -3598,6 +3598,7 @@ static void __hdd_set_multicast_list(struct net_device *dev)
ucfg_pmo_max_mc_addr_supported(psoc));
hdd_disable_and_flush_mc_addr_list(adapter,
pmo_mc_list_change_notify);
adapter->mc_addr_list.mc_cnt = 0;
goto free_req;
}
netdev_for_each_mc_addr(ha, dev) {
@ -3615,6 +3616,7 @@ static void __hdd_set_multicast_list(struct net_device *dev)
}
}
adapter->mc_addr_list.mc_cnt = mc_count;
mc_list_request->psoc = psoc;
mc_list_request->vdev_id = adapter->session_id;
mc_list_request->count = mc_count;