浏览代码

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
Hanumanth Reddy Pothula 8 年之前
父节点
当前提交
ca84ec5a44
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      core/hdd/src/wlan_hdd_main.c

+ 7 - 0
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,