Message ID | 20201231000523.14963-6-greearb@candelatech.com |
---|---|
State | New |
Headers | show |
Series | [1/6] iwlwifi: Decrease firmware monitor debug area from 4MB to 512k. | expand |
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-modparams.h b/drivers/net/wireless/intel/iwlwifi/iwl-modparams.h index e8ce3a300857..070c8458e4cd 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-modparams.h +++ b/drivers/net/wireless/intel/iwlwifi/iwl-modparams.h @@ -86,7 +86,7 @@ enum iwl_amsdu_size { IWL_AMSDU_8K = 2, IWL_AMSDU_12K = 3, /* Add 2K at the end to avoid breaking current API */ - IWL_AMSDU_2K = 4, + IWL_AMSDU_2K = 4, /* ax200 blows up if you set it to this */ }; enum iwl_uapsd_disable { diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c index 8e7a3be7621a..a3fd791bab78 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c @@ -791,6 +791,11 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, case IWL_AMSDU_DEF: trans_cfg.rx_buf_size = rb_size_default; break; + case IWL_AMSDU_2K: + /* ax200 blows up with this setting. */ + if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) + trans_cfg.rx_buf_size = IWL_AMSDU_2K; + break; case IWL_AMSDU_4K: trans_cfg.rx_buf_size = IWL_AMSDU_4K; break;