static void rtl8187_configure_filter(struct ieee80211_hw *dev,
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
-@@ -2801,11 +2801,20 @@ struct wl1271_filter_params {
+@@ -2786,11 +2786,20 @@ struct wl1271_filter_params {
u8 mc_list[ACX_MC_ADDRESS_GROUP_MAX][ETH_ALEN];
};
+#else
+ int i;
+#endif
- struct wl1271 *wl = hw->priv;
- if (unlikely(wl->state == WL1271_STATE_OFF))
-@@ -2818,16 +2827,40 @@ static u64 wl1271_op_prepare_multicast(s
+ fp = kzalloc(sizeof(*fp), GFP_ATOMIC);
+ if (!fp) {
+@@ -2799,16 +2808,40 @@ static u64 wl1271_op_prepare_multicast(s
}
/* update multicast filtering parameters */