wlan: set MC/BC filters appropriately.
While updating MC/BC filters dynamically, update
'sus_res_mcastbcast_filter' variable accordingly.
Change-Id: I6070e5e1123f9ca80a9f0ee5a7197ac6ca5f535b
CRs-Fixed: 746681
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index 6789484..e316ea3 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -6574,6 +6574,11 @@
return -EINVAL;
}
+ if (VOS_TRUE == pHddCtx->sus_res_mcastbcast_filter_valid)
+ {
+ pHddCtx->sus_res_mcastbcast_filter =
+ pRequest->mcastBcastFilterSetting;
+ }
}
}
@@ -6634,6 +6639,13 @@
vos_mem_free(wlanRxpFilterParam);
return -EINVAL;
}
+
+ if (VOS_TRUE == pHddCtx->sus_res_mcastbcast_filter_valid)
+ {
+ pHddCtx->sus_res_mcastbcast_filter =
+ pHddCtx->cfg_ini->mcastBcastFilterSetting;
+ }
+
}
return 0;
}