wlan: MC/BC Filter cleanup
Removing hdd_dynamic_mcbcfilter_t and introducing a new variable inside
hdd context configuredMcastBcastFilter which contains the current
value of MC/BC filter. By default initialized with INI value and changed
accordingly whenever MC/BC filter is set using IOCTL or ARPOffload is
being set.
Change-Id: I66e0479b40fc908ea098978a8a7f53370b1b7219
CRs-fixed: 490232
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 2fa29b7..ad3311a 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -5365,6 +5365,12 @@
goto err_config;
}
+ /* INI has been read, initialise the configuredMcastBcastFilter with
+ * INI value as this will serve as the default value
+ */
+ pHddCtx->configuredMcastBcastFilter = pHddCtx->cfg_ini->mcastBcastFilterSetting;
+ hddLog(VOS_TRACE_LEVEL_INFO, "Setting configuredMcastBcastFilter: %d",
+ pHddCtx->cfg_ini->mcastBcastFilterSetting);
/*
* cfg80211: Initialization and registration ...
*/