From df2bdfdd24937599abfddb39d7dde64694644313 Mon Sep 17 00:00:00 2001 From: stonez Date: Tue, 20 Nov 2018 14:45:06 +0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 11518ffe8bc0..bff275ff36b9 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -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;