Skip to content

Commit 61e7d91

Browse files
committed
iwlwifi: mvm: handle FIF_ALLMULTI when setting multicast addresses
We were ignoring the FIF_ALLMULTI flag when setting the multicast addresses with MCAST_FILTER_CMD. Check if this flag is set and enable pass_all accordingly. We also need to set the count to 0 if pass_all is enable so we don't pass addresses to the firmware when not needed (as doing so causes an assert). This fixes https://bugzilla.kernel.org/show_bug.cgi?id=196741 Signed-off-by: Luca Coelho <[email protected]>
1 parent 97bce57 commit 61e7d91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,12 @@ static void iwl_mvm_configure_filter(struct ieee80211_hw *hw,
16431643
if (!cmd)
16441644
goto out;
16451645

1646+
if (changed_flags & FIF_ALLMULTI)
1647+
cmd->pass_all = !!(*total_flags & FIF_ALLMULTI);
1648+
1649+
if (cmd->pass_all)
1650+
cmd->count = 0;
1651+
16461652
iwl_mvm_recalc_multicast(mvm);
16471653
out:
16481654
mutex_unlock(&mvm->mutex);

0 commit comments

Comments
 (0)