iwlwifi: mvm: correctly fill the ac array in the iwl_mac_ctx_cmd
authorNaftali Goldstein <naftali.goldstein@intel.com>
Mon, 13 May 2019 13:36:30 +0000 (16:36 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 29 Jun 2019 07:09:39 +0000 (10:09 +0300)
commitb5e2fe356e09cd8576529dce832f2a6599fa88a4
tree1d74d179df80ba118d88477ec60cddaa4385b00e
parentbd9c519785926c72ff66e1b7218a622ace1da0eb
iwlwifi: mvm: correctly fill the ac array in the iwl_mac_ctx_cmd

The indexes into the ac array in the iwl_mac_ctx_cmd are from the iwl_ac
enum and not the txfs.  The current code therefore puts the edca params
in the wrong indexes of the array, causing wrong priority for
data-streams of different ACs.
Fix this.

Note that this bug only occurs in NICs that use the new tx api, since in
the old tx api the txf number is equal to the corresponding ac in the
iwl_ac enum.

Signed-off-by: Naftali Goldstein <naftali.goldstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/utils.c