OSDN Git Service

iwlwifi: copy iwl_he_capa for modifications
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Dec 2020 21:16:15 +0000 (23:16 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 9 Dec 2020 22:11:20 +0000 (00:11 +0200)
commitd43ab298efc639bd40a90daa4bc7c556c00b6737
tree526d604da2c22b00356354a793ffbb75f4a98538
parent4adfaf9b2de3a04a9ee9adff6e000e8dbb37bed5
iwlwifi: copy iwl_he_capa for modifications

This data is not necessarily the same across devices as we may
modify it due to the number of antennas and for overrides (though
in practice overrides are likely to be identical), so modifying
the global data is wrong.

Make a copy of it in the NVM data and modify it there instead.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20201209231352.6b4ee30c59e4.I0c30ef78b3bf727fe80b16a19c7588016d6b04bf@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.h
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c