From b763144737bd7c6cce36ca0bcd2afd8066adec93 Mon Sep 17 00:00:00 2001 From: Rachit Kankane Date: Thu, 29 Nov 2018 13:09:40 +0530 Subject: [PATCH] qcacld-3.0: Enable legacy MC/BC filtering Compile MC/BC filtering feature without WLAN_FEATURE_PACKET_FILTERING feature Change-Id: I783e3a04c148dab493f762f9cf2d55e4975e2b02 CRs-Fixed: 2328317 --- core/hdd/inc/wlan_hdd_main.h | 4 ---- core/hdd/src/wlan_hdd_main.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index efade6a60efb4..e4a57b73fae1d 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -1119,12 +1119,10 @@ struct hdd_scan_info { #define WLAN_HDD_MAX_MC_ADDR_LIST CFG_TGT_MAX_MULTICAST_FILTER_ENTRIES -#ifdef WLAN_FEATURE_PACKET_FILTERING struct hdd_multicast_addr_list { uint8_t mc_cnt; uint8_t addr[WLAN_HDD_MAX_MC_ADDR_LIST][ETH_ALEN]; }; -#endif #define WLAN_HDD_MAX_HISTORY_ENTRY 10 @@ -1368,9 +1366,7 @@ struct hdd_adapter { #endif /* WLAN_FEATURE_TSF_PLUS */ #endif -#ifdef WLAN_FEATURE_PACKET_FILTERING struct hdd_multicast_addr_list mc_addr_list; -#endif uint8_t addr_filter_pattern; bool survey_idx; diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index e4195c1d5dfd5..a1fd296c9e8bc 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -3567,7 +3567,6 @@ void wlan_hdd_release_intf_addr(struct hdd_context *hdd_ctx, } } -#ifdef WLAN_FEATURE_PACKET_FILTERING /** * __hdd_set_multicast_list() - set the multicast address list * @dev: Pointer to the WLAN device. @@ -3678,7 +3677,6 @@ static void hdd_set_multicast_list(struct net_device *dev) __hdd_set_multicast_list(dev); cds_ssr_unprotect(__func__); } -#endif /** * hdd_select_queue() - used by Linux OS to decide which queue to use first @@ -3712,9 +3710,7 @@ static const struct net_device_ops wlan_drv_ops = { .ndo_do_ioctl = hdd_ioctl, .ndo_set_mac_address = hdd_set_mac_address, .ndo_select_queue = hdd_select_queue, -#ifdef WLAN_FEATURE_PACKET_FILTERING .ndo_set_rx_mode = hdd_set_multicast_list, -#endif }; #ifdef FEATURE_MONITOR_MODE_SUPPORT