From ca84ec5a44a3241710be4b9311e607b40179cb35 Mon Sep 17 00:00:00 2001 From: Hanumanth Reddy Pothula Date: Tue, 21 Feb 2017 12:09:45 +0530 Subject: [PATCH] qcacld-3.0: Clear current MC address list before configuring new list Presently, on receiving new MC address list, Host is just updating MC address list and sending same to FW, without clearing previously configured MC address list. This may lead to MC address list not to be cleanly configured in FW. Before configuring new address, clear previously configured MC address list. Change-Id: Ia0c79099d248c3d992b9fa420d46c1464229b03a CRs-Fixed: 2009368 --- core/hdd/src/wlan_hdd_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index d32877506cdb..450d3677773f 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2636,6 +2636,13 @@ static void __hdd_set_multicast_list(struct net_device *dev) goto out; } + /* Delete already configured multicast address list */ + if (adapter->mc_addr_list.mc_cnt > 0) { + hdd_info("clear previously configured MC address list"); + hdd_disable_and_flush_mc_addr_list(adapter, + pmo_mc_list_change_notify); + } + if (dev->flags & IFF_ALLMULTI) { hdd_debug("allow all multicast frames"); hdd_disable_and_flush_mc_addr_list(adapter,