OSDN Git Service

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)
commitc3f40c3e0273392b8c01351cf53f5183e1b06289
treeddd5ae2b170532bec9ace7b86fedaf0adf06e274
parentb0ae61dd59734085b211f26caf8a0b5fd35548e8
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