iwlwifi: mvm: fix setting HE ppe FW config
authorNaftali Goldstein <naftali.goldstein@intel.com>
Wed, 22 Aug 2018 09:18:19 +0000 (12:18 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 20 Dec 2018 07:06:45 +0000 (09:06 +0200)
commit189b8d441b0f7825f0b4278851c52afaa0515ed2
tree366d808938187937d84575259309c5be8ee929d4
parent4120e4a119ed8c8e28d20524713ab2e3df67a34d
iwlwifi: mvm: fix setting HE ppe FW config

The FW expects to get the ppe value for each NSS-BW pair in the same
format as in the he phy capabilities IE, which means that a value of 0
implies ppe should be used for BPSK (mcs 0). If there are no PPE
thresholds in the IE, or if for some NSS-RU pair there's no threshold
set for it (this could happen because it's a variable-sized field), it
means no PPE should not be used for that pair, so the value sent to FW
should be 7 which corresponds to "none".

Fixes: 514c30696fbc ("iwlwifi: add support for IEEE802.11ax")
Signed-off-by: Naftali Goldstein <naftali.goldstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlwifi/fw/api/mac.h
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c