mirror_ubuntu-kernels/drivers/net/wireless/intel/iwlwifi
Naftali Goldstein 45acebf8d6 iwlwifi: fix sar geo table initialization
When adding support for version 3 of the GEO_TX_POWER_LIMIT command,
the table argument of iwl_sar_geo_init was changed from a pointer a 1d
array of now-removed iwl_per_chain_offset_group_v1 to a pointer to a 2d
array of iwl_per_chain_offset (iwl_per_chain_offset_group_v1 was a
struct containing 2 copies of iwl_per_chain_offset).

So even for version 2 where the second dimension is of length 2, which
means that the underlying memory layout of the array didn't change, this
requires a small change in the way we loop over it, and this was missed.

Additionally, for the case of version 3 where the second dimension is now
3, in order to fill the first two elements of each row correctly (lb and
hb), iwl_sar_geo_init must get the true number of bands supported.
But because we don't yet store any values for the 3rd (uhb) band, skip
that band.

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>
Link: https://lore.kernel.org/r/iwlwifi.20201008181047.73605b6e0548.Id0ec98333277ff9e017e3938ae413b34acc68947@changeid
2020-10-08 20:14:55 +03:00
..
cfg iwlwifi: pcie: fix the xtal latency value for a few qu devices 2020-10-08 20:14:49 +03:00
dvm iwlwifi: dvm: devices: Fix function documentation formatting issues 2020-10-08 13:43:52 +03:00
fw iwlwifi: fix sar geo table initialization 2020-10-08 20:14:55 +03:00
mvm iwlwifi: fix sar geo table initialization 2020-10-08 20:14:55 +03:00
pcie iwlwifi: pcie: fix xtal latency for 9560 devices 2020-10-08 20:14:48 +03:00
queue iwlwifi: pcie: make iwl_pcie_txq_update_byte_cnt_tbl bus independent 2020-10-01 22:02:23 +03:00
iwl-agn-hw.h
iwl-config.h iwlwifi: pcie: fix xtal latency for 9560 devices 2020-10-08 20:14:48 +03:00
iwl-context-info-gen3.h iwlwifi: update prph scratch structure to include PNVM data 2020-10-08 20:09:27 +03:00
iwl-context-info.h iwlwifi: allocate more receive buffers for HE devices 2019-12-23 11:54:31 +02:00
iwl-csr.h wireless-drivers-next patches for v5.6 2020-01-27 11:25:36 +01:00
iwl-dbg-tlv.c iwlwifi: yoyo: add support for internal buffer allocation in D3 2020-10-01 22:02:28 +03:00
iwl-dbg-tlv.h iwlwifi: yoyo: don't allow changing the domain via debugfs 2020-01-04 12:41:55 +02:00
iwl-debug.c net: iwlwifi: Remove in_interrupt() from tracing macro. 2020-09-29 14:02:55 -07:00
iwl-debug.h iwlwifi: mvm: add d3 prints 2020-10-01 22:00:59 +03:00
iwl-devtrace-data.h iwlwifi: pcie: trace IOVA for iwlwifi_dev_tx_tb 2019-11-20 12:28:55 +02:00
iwl-devtrace-io.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 322 2019-06-05 17:37:05 +02:00
iwl-devtrace-iwlwifi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 322 2019-06-05 17:37:05 +02:00
iwl-devtrace-msg.h net: iwlwifi: Remove in_interrupt() from tracing macro. 2020-09-29 14:02:55 -07:00
iwl-devtrace-ucode.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 322 2019-06-05 17:37:05 +02:00
iwl-devtrace.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 322 2019-06-05 17:37:05 +02:00
iwl-devtrace.h iwlwifi: fix warning iwl-trans.h is included more than once 2019-09-06 15:52:05 +03:00
iwl-drv.c iwlwifi: mvm: get number of stations from TLV 2020-10-08 20:09:25 +03:00
iwl-drv.h iwlwifi: remove outdated copyright print/module statement 2020-05-08 09:53:06 +03:00
iwl-eeprom-parse.c iwlwifi: always access the trans configuration via trans 2019-09-06 15:52:04 +03:00
iwl-eeprom-parse.h iwlwifi: always access the trans configuration via trans 2019-09-06 15:52:04 +03:00
iwl-eeprom-read.c iwlwifi: always access the trans configuration via trans 2019-09-06 15:52:04 +03:00
iwl-eeprom-read.h
iwl-fh.h iwlwifi: use longer queues for 256-BA 2020-05-08 09:52:56 +03:00
iwl-io.c iwlwifi: remove CSR registers abstraction 2019-12-23 11:54:32 +02:00
iwl-io.h iwlwifi: don't access trans_cfg via cfg 2019-10-09 13:01:03 +03:00
iwl-modparams.h iwlwifi: remove antenna_coupling module parameter 2020-05-08 09:50:42 +03:00
iwl-nvm-parse.c iwlwifi: regulatory: regulatory capabilities api change 2020-10-01 21:57:22 +03:00
iwl-nvm-parse.h iwlwifi: regulatory: regulatory capabilities api change 2020-10-01 21:57:22 +03:00
iwl-op-mode.h iwlwifi: Replace zero-length array with flexible-array 2020-06-10 15:22:16 +03:00
iwl-phy-db.c
iwl-phy-db.h
iwl-prph.h iwlwifi: mvm: ring the doorbell and wait for PNVM load completion 2020-10-08 20:09:28 +03:00
iwl-scd.h
iwl-trans.c iwlwifi: move all bus-independent TX functions to common code 2020-10-01 22:00:57 +03:00
iwl-trans.h iwlwifi: mvm: read and parse SKU ID if available 2020-10-08 20:09:26 +03:00
Kconfig First set of patches intended for v5.9 2020-06-15 20:23:23 +03:00
Makefile iwlwifi: move all bus-independent TX functions to common code 2020-10-01 22:00:57 +03:00