diff options
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c index e0c9065a3ad4..ef4bdfc9e7e2 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c | |||
| @@ -346,7 +346,7 @@ void iwl_mvm_set_tx_cmd_rate(struct iwl_mvm *mvm, struct iwl_tx_cmd *tx_cmd, | |||
| 346 | 346 | ||
| 347 | rate_idx = info->control.rates[0].idx; | 347 | rate_idx = info->control.rates[0].idx; |
| 348 | /* if the rate isn't a well known legacy rate, take the lowest one */ | 348 | /* if the rate isn't a well known legacy rate, take the lowest one */ |
| 349 | if (rate_idx < 0 || rate_idx > IWL_RATE_COUNT_LEGACY) | 349 | if (rate_idx < 0 || rate_idx >= IWL_RATE_COUNT_LEGACY) |
| 350 | rate_idx = rate_lowest_index( | 350 | rate_idx = rate_lowest_index( |
| 351 | &mvm->nvm_data->bands[info->band], sta); | 351 | &mvm->nvm_data->bands[info->band], sta); |
| 352 | 352 | ||
