]> 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)
commit856537f6b9b211ec80d40287b9a818d555d72679
treeddd5ae2b170532bec9ace7b86fedaf0adf06e274
parent42be5bc550a2bb1c295269150710e00f2a2271e5
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