mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
iwlwifi: mvm: add MVM_FW_MCAST_FILTER_PASS_ALL option
Add MVM_FW_MCAST_FILTER_PASS_ALL option to iwl-dbg-cfg.ini configuration file to enable/disable FW multicast filtering. Signed-off-by: Max Stepanov <Max.Stepanov@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
This commit is contained in:
parent
a26d4e7b09
commit
f3bd58f486
2 changed files with 7 additions and 5 deletions
|
@ -86,5 +86,6 @@
|
||||||
#define IWL_MVM_BT_COEX_SYNC2SCO 1
|
#define IWL_MVM_BT_COEX_SYNC2SCO 1
|
||||||
#define IWL_MVM_BT_COEX_CORUNNING 1
|
#define IWL_MVM_BT_COEX_CORUNNING 1
|
||||||
#define IWL_MVM_BT_COEX_MPLUT 1
|
#define IWL_MVM_BT_COEX_MPLUT 1
|
||||||
|
#define IWL_MVM_FW_MCAST_FILTER_PASS_ALL 0
|
||||||
|
|
||||||
#endif /* __MVM_CONSTANTS_H */
|
#endif /* __MVM_CONSTANTS_H */
|
||||||
|
|
|
@ -1200,14 +1200,15 @@ static u64 iwl_mvm_prepare_multicast(struct ieee80211_hw *hw,
|
||||||
struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
|
struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
|
||||||
struct iwl_mcast_filter_cmd *cmd;
|
struct iwl_mcast_filter_cmd *cmd;
|
||||||
struct netdev_hw_addr *addr;
|
struct netdev_hw_addr *addr;
|
||||||
int addr_count = netdev_hw_addr_list_count(mc_list);
|
int addr_count;
|
||||||
bool pass_all = false;
|
bool pass_all;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
if (addr_count > MAX_MCAST_FILTERING_ADDRESSES) {
|
addr_count = netdev_hw_addr_list_count(mc_list);
|
||||||
pass_all = true;
|
pass_all = addr_count > MAX_MCAST_FILTERING_ADDRESSES ||
|
||||||
|
IWL_MVM_FW_MCAST_FILTER_PASS_ALL;
|
||||||
|
if (pass_all)
|
||||||
addr_count = 0;
|
addr_count = 0;
|
||||||
}
|
|
||||||
|
|
||||||
len = roundup(sizeof(*cmd) + addr_count * ETH_ALEN, 4);
|
len = roundup(sizeof(*cmd) + addr_count * ETH_ALEN, 4);
|
||||||
cmd = kzalloc(len, GFP_ATOMIC);
|
cmd = kzalloc(len, GFP_ATOMIC);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue