diff options
| author | Gregory Greenman <[email protected]> | 2017-11-01 07:04:38 +0000 |
|---|---|---|
| committer | Luca Coelho <[email protected]> | 2017-12-05 19:01:41 +0000 |
| commit | 110b32f065f3c66a7a1626ca57b64641ed6a578e (patch) | |
| tree | 9a0c5eb3cc79744758d82b0fb1b2f57a6f6c21f9 /drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |
| parent | iwlwifi: mvm: rs: add ops for the new rate scaling in the FW (diff) | |
| download | kernel-110b32f065f3c66a7a1626ca57b64641ed6a578e.tar.gz kernel-110b32f065f3c66a7a1626ca57b64641ed6a578e.zip | |
iwlwifi: mvm: rs: add basic implementation of the new RS API handlers
This patch adds rate scaling configuration command and
implements a few other handlers.
Signed-off-by: Gregory Greenman <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c index 79acb13f203a..280edf89e5eb 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c @@ -278,8 +278,8 @@ u8 iwl_mvm_next_antenna(struct iwl_mvm *mvm, u8 valid, u8 last_idx) u8 ind = last_idx; int i; - for (i = 0; i < RATE_MCS_ANT_NUM; i++) { - ind = (ind + 1) % RATE_MCS_ANT_NUM; + for (i = 0; i < MAX_RS_ANT_NUM; i++) { + ind = (ind + 1) % MAX_RS_ANT_NUM; if (valid & BIT(ind)) return ind; } |
