iwlwifi: mvm: correct rate_idx bounds-check
commit7f66ea03644e197a29af5a00a6e26ff120d8edd0
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Sep 2016 08:20:10 +0000 (14 10:20 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 22 Sep 2016 20:28:22 +0000 (22 23:28 +0300)
treea198339ab2d8657d4bc42093434b61976a1978d4
parent75cfe338b8a6fadaa28879a969047554701a7589
iwlwifi: mvm: correct rate_idx bounds-check

The upper bound IWL_RATE_COUNT_LEGACY should be used
with a >= check, rejecting the value itself; fix that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c