1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel/iwlwifi/fw
Johannes Berg d1f6530c3e iwlwifi: fw: init SAR GEO table only if data is present
When no table data was read from ACPI, then filling the data
and returning success here will fill zero values, which means
transmit power will be limited to 0 dBm. This is clearly not
intended.

Return an error from iwl_sar_geo_init() if there's no data to
fill into the command structure.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Fixes: 78a19d5285 ("iwlwifi: mvm: Read the PPAG and SAR tables at INIT stage")
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20220517120044.bc45923b74e9.Id2b4362234b7f8ced82c591b95d4075dd2ec12f4@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2022-05-18 12:53:53 +02:00
..
api iwlwifi: fw: Replace zero-length arrays with flexible-array members 2022-04-06 10:18:08 +03:00
acpi.c iwlwifi: fw: init SAR GEO table only if data is present 2022-05-18 12:53:53 +02:00
acpi.h iwlwifi: acpi: move ppag code from mvm to fw/acpi 2022-03-10 09:23:29 +02:00
dbg.c iwlwifi: dbg: check trigger data before access 2022-03-10 09:23:29 +02:00
dbg.h iwlwifi: yoyo: send hcmd to fw after dump collection completes. 2022-02-18 10:40:55 +02:00
debugfs.c iwlwifi: prefer WIDE_ID() over iwl_cmd_id() 2022-02-18 10:40:50 +02:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
dump.c iwlwifi: dump RCM error tables 2021-12-21 12:35:05 +02:00
error-dump.h iwlwifi: fw: Replace zero-length arrays with flexible-array members 2022-04-06 10:18:08 +03:00
file.h iwlwifi: fw: Replace zero-length arrays with flexible-array members 2022-04-06 10:18:08 +03:00
img.c iwlwifi: make iwl_fw_lookup_cmd_ver() take a cmd_id 2022-02-18 10:40:50 +02:00
img.h iwlwifi: mvm: remove cipher scheme support 2022-03-10 09:23:27 +02:00
init.c iwlwifi: make iwl_fw_lookup_cmd_ver() take a cmd_id 2022-02-18 10:40:50 +02:00
notif-wait.c iwlwifi: fw: fix notification wait locking 2021-04-06 13:25:59 +03:00
notif-wait.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
paging.c iwlwifi: avoid void pointer arithmetic 2022-02-18 10:40:50 +02:00
pnvm.c iwlwifi: fix various more -Wcast-qual warnings 2022-02-18 10:40:50 +02:00
pnvm.h iwlwifi: move get pnvm file name to a separate function 2021-08-26 23:38:16 +03:00
rs.c iwlwifi: fix iwl_legacy_rate_to_fw_idx 2022-02-03 10:24:47 +02:00
runtime.h iwlwifi: mvm: add a flag to reduce power command. 2022-03-10 09:23:26 +02:00
smem.c iwlwifi: prefer WIDE_ID() over iwl_cmd_id() 2022-02-18 10:40:50 +02:00
uefi.c iwlwifi: fix various more -Wcast-qual warnings 2022-02-18 10:40:50 +02:00
uefi.h iwlwifi: support SAR GEO Offset Mapping override via BIOS 2021-12-07 20:06:47 +02:00