]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a753006f54c625de9b2c935812b78b009bdeb64
tree526d604da2c22b00356354a793ffbb75f4a98538
parent5d9038b2d9e6a06f22a5c459d94d8df64a0cae3c
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