diff options
| author | Mukul Sharma <mukul@codeaurora.org> | 2016-12-29 19:35:53 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-12-30 02:51:41 -0800 |
| commit | d8794a4ee3761b6ad830af2102ed1feb7fca14a5 (patch) | |
| tree | 518693ea6c099190bbf63948e61f704f5ef01b5b | |
| parent | 181a6d577ef50d5ee196312ea5ed69a861237c20 (diff) | |
qcacld-2.0: Don't process rx filter/mc list req when mc ini is disabled
Presently, Host process set rx filter/mc list request though
mc address list ini is disabled.
Hence as aprt of the fix, Don't process these request when
mc addr list ini is disabled.
Change-Id: Ia9a152dd1d3e533eff898f425d5309126354a6b5
CRs-Fixed: 1106300
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index 67b2b30299ed..402048812787 100644 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -4682,6 +4682,11 @@ static int hdd_set_rx_filter(hdd_adapter_t *adapter, bool action, return -EINVAL; } + if (!hdd_ctx->cfg_ini->fEnableMCAddrList) { + hddLog(VOS_TRACE_LEVEL_ERROR, FL("mc addr ini is disabled")); + return -EINVAL; + } + /* * If action is false it means start dropping packets * Set addr_filter_pattern which will be used when sending @@ -9997,6 +10002,11 @@ static void __hdd_set_multicast_list(struct net_device *dev) if (0 != wlan_hdd_validate_context(pHddCtx)) return; + if (!pHddCtx->cfg_ini->fEnableMCAddrList) { + hddLog(VOS_TRACE_LEVEL_ERROR, FL("mc addr list ini is disabled")); + return; + } + /* Delete already configured multicast address list */ if (0 < pAdapter->mc_addr_list.mc_cnt) if (wlan_hdd_set_mc_addr_list(pAdapter, false)) { |
