iwlwifi: mvm: use IWL_HCMD_NOCOPY for MCAST_FILTER_CMD
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 1 Sep 2017 14:59:15 +0000 (17:59 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 8 Sep 2017 08:44:39 +0000 (11:44 +0300)
commit97bce57bd7f96e1218751996f549a6e61f18cc8c
tree03416010fab653e6f381bbfcd71187dd07eca50c
parent8458e48ac7ad86a5ab7f3d1a8cacd9205a9a97ce
iwlwifi: mvm: use IWL_HCMD_NOCOPY for MCAST_FILTER_CMD

The MCAST_FILTER_CMD can get quite large when we have many mcast
addresses to set (we support up to 255).  So the command should be
send as NOCOPY to prevent a warning caused by too-long commands:

WARNING: CPU: 0 PID: 9700 at /root/iwlwifi/stack-dev/drivers/net/wireless/intel/iwlwifi/pcie/tx.c:1550 iwl_pcie_enqueue_hcmd+0x8c7/0xb40 [iwlwifi]
Command MCAST_FILTER_CMD (0x1d0) is too large (328 bytes)

This fixes: https://bugzilla.kernel.org/show_bug.cgi?id=196743

Cc: stable@vger.kernel.org
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c