diff options
| author | Miri Korenblit <[email protected]> | 2024-01-31 10:24:38 +0200 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2024-02-02 14:15:14 +0100 |
| commit | c0a3dfc1ce955732ae8cd301a052f2277aa55436 (patch) | |
| tree | 4d5e5078ede79a24a53c2381582a976478acd2bb /drivers/net/wireless/intel/iwlwifi/fw/acpi.c | |
| parent | 2594e4d9e1a2d79bf7bb262974abaf5ef153e371 (diff) | |
wifi: iwlwifi: cleanup sending PER_CHAIN_LIMIT_OFFSET_CMD
iwl_geo_tx_power_profiles_cmd::table_revision indicates whether
to use South Korea scheme or not.
We use South Korea scheme if the revision of WGDS table is 1.
We used to read the WGDS table from ACPI inside iwl_sar_geo_fill_table(),
so we had to set table_revision only after the call to it.
This added an extra if...else for each cmd version.
But it has been a while since we moved the BIOS tables reading to
INIT stage, and iwl_sar_geo_fill_table() is now only copying the
previously stored table to the cmd structure.
Set the table_revision before the call to iwl_sar_geo_fill_table()
and avoid that extra if...else.
Signed-off-by: Miri Korenblit <[email protected]>
Reviewed-by: Gregory Greenman <[email protected]>
Link: https://msgid.link/20240131091413.17a2384d4535.I306570874f1da0c6345066ebbf74a04b6c8aeb37@changeid
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/acpi.c')
0 files changed, 0 insertions, 0 deletions