summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wfx/sta.c
diff options
context:
space:
mode:
authorJérôme Pouiller <jerome.pouiller@silabs.com>2020-01-15 13:54:49 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-16 20:59:49 +0100
commitf5864a1076d1a5f3c7d297ab79bfabaa69af3e41 (patch)
tree7e559ada37ed3ddd2a57794d1eee6870504d2fdc /drivers/staging/wfx/sta.c
parent46f044b965e62f07a9c1411328487bf8346dbc79 (diff)
staging: wfx: simplify hif_mib_uc_mc_bc_data_frame_condition
The current API defines bitfields. It is not very convenient. Prefer to use bitmasks. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200115135338.14374-33-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wfx/sta.c')
-rw-r--r--drivers/staging/wfx/sta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c
index 79285927c7bf..1c1b5a6c2474 100644
--- a/drivers/staging/wfx/sta.c
+++ b/drivers/staging/wfx/sta.c
@@ -142,8 +142,8 @@ static int wfx_set_mcast_filter(struct wfx_vif *wvif,
config.mac_cond |= 1 << i;
}
- // Accept unicast and broadcast
- ret = hif_set_uc_mc_bc_condition(wvif, 0, true, false, true);
+ ret = hif_set_uc_mc_bc_condition(wvif, 0, HIF_FILTER_UNICAST |
+ HIF_FILTER_BROADCAST);
if (ret)
return ret;