]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: add US/CA to TAS block list if OEM isn't allowed
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sun, 19 Dec 2021 11:28:28 +0000 (13:28 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 21 Dec 2021 10:35:07 +0000 (12:35 +0200)
commit76dd79979de7e5a3ae08122531dc2454d594d9d8
treeddd5ae2b170532bec9ace7b86fedaf0adf06e274
parentdb60aef2d51f48fccc3bec2be383ecbc37502830
iwlwifi: mvm: add US/CA to TAS block list if OEM isn't allowed

If OEM isn't in the allowed list, TAS should be disabled in US/CA.
Currently, if the OEM isn't allowed - we're sending the TAS only
if we are not in US or CA.
But this country check is done before we even know the country
(usually the configuration is ZZ in that stage).
So do the following instead:
1. Check if the current OEM is in the allowed list
2. If not - add US and CA to tas_block_list_array
3. Send the TAS table to FW.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c