]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit77697be665a736134ff83bf87e6107fea451c71b
tree1d74d179df80ba118d88477ec60cddaa4385b00e
parent00dfa8512b1d8aadfc37aa11821c497d0e615d20
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