diff options
| author | Hanumanth Reddy Pothula <c_hpothu@codeaurora.org> | 2017-02-21 12:09:45 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-03-01 00:38:14 -0800 |
| commit | 7da0dffeb9d26e7ee84748514e73506a9f7fffe5 (patch) | |
| tree | 2b7c8561cbcceccdb905ea8beba65123d7504f3d | |
| parent | 20764d2837d79a5e20190d0211f69e7d7a2c66ee (diff) | |
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
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 5400bbbb20c2..9ceebd2e2f1c 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2297,6 +2297,13 @@ static void __hdd_set_multicast_list(struct net_device *dev) return; } + /* Delete already configured multicast address list */ + if (adapter->mc_addr_list.mc_cnt > 0) + if (wlan_hdd_set_mc_addr_list(adapter, false)) { + hdd_info("failed to clear mc addr list"); + return; + } + if (dev->flags & IFF_ALLMULTI) { hdd_notice("allow all multicast frames"); adapter->mc_addr_list.mc_cnt = 0; |
