Skip to content

Commit f7e3ab5

Browse files
committed
wifi: iwlwifi: mvm: add US/Canada MCC to API
We don't want to duplicate the definitions later, so add them to the API. Signed-off-by: Johannes Berg <[email protected]> Reviewed-by: Gregory Greenman <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://msgid.link/20231219215605.6595e905997b.I12354d31676911b29ab30c81a4e9b87f59284d3b@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 1c022d0 commit f7e3ab5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ struct iwl_nvm_access_complete_cmd {
269269
__le32 reserved;
270270
} __packed; /* NVM_ACCESS_COMPLETE_CMD_API_S_VER_1 */
271271

272+
#define IWL_MCC_US 0x5553
273+
#define IWL_MCC_CANADA 0x4341
274+
272275
/**
273276
* struct iwl_mcc_update_cmd - Request the device to update geographic
274277
* regulatory profile according to the given MCC (Mobile Country Code).

drivers/net/wireless/intel/iwlwifi/mvm/fw.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
#define MVM_UCODE_ALIVE_TIMEOUT (2 * HZ)
2828
#define MVM_UCODE_CALIB_TIMEOUT (2 * HZ)
2929

30-
#define IWL_TAS_US_MCC 0x5553
31-
#define IWL_TAS_CANADA_MCC 0x4341
32-
3330
#define IWL_UATS_VLP_AP_SUPPORTED BIT(29)
3431
#define IWL_UATS_AFC_AP_SUPPORTED BIT(30)
3532

@@ -1234,10 +1231,10 @@ static void iwl_mvm_tas_init(struct iwl_mvm *mvm)
12341231
dmi_get_system_info(DMI_SYS_VENDOR));
12351232
if ((!iwl_mvm_add_to_tas_block_list(cmd.v4.block_list_array,
12361233
&cmd.v4.block_list_size,
1237-
IWL_TAS_US_MCC)) ||
1234+
IWL_MCC_US)) ||
12381235
(!iwl_mvm_add_to_tas_block_list(cmd.v4.block_list_array,
12391236
&cmd.v4.block_list_size,
1240-
IWL_TAS_CANADA_MCC))) {
1237+
IWL_MCC_CANADA))) {
12411238
IWL_DEBUG_RADIO(mvm,
12421239
"Unable to add US/Canada to TAS block list, disabling TAS\n");
12431240
return;

0 commit comments

Comments
 (0)