Skip to content

Commit e1ba684

Browse files
sara-segrumbach
authored andcommitted
iwlwifi: 8000: fix MODULE_FIRMWARE input
The firwmare name for 8000 is iwlwifi-8000C. The C is appended based on a value read from a register. This allows to load different firwmare versions based on the hardware step during development. Now that the hardware development is completed, we can hard code the 'C' and along the way, fix the input to MODULE_FIRMWARE. This fixes: https://bugzilla.kernel.org/show_bug.cgi?id=116041 Signed-off-by: Sara Sharon <sara.sharon@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
1 parent cd49727 commit e1ba684

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

drivers/net/wireless/intel/iwlwifi/iwl-8000.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
#define IWL8260_SMEM_OFFSET 0x400000
9494
#define IWL8260_SMEM_LEN 0x68000
9595

96-
#define IWL8000_FW_PRE "iwlwifi-8000"
96+
#define IWL8000_FW_PRE "iwlwifi-8000C-"
9797
#define IWL8000_MODULE_FIRMWARE(api) \
9898
IWL8000_FW_PRE "-" __stringify(api) ".ucode"
9999

drivers/net/wireless/intel/iwlwifi/iwl-drv.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,6 @@ static int iwl_request_firmware(struct iwl_drv *drv, bool first)
238238
snprintf(drv->firmware_name, sizeof(drv->firmware_name), "%s%s.ucode",
239239
name_pre, tag);
240240

241-
/*
242-
* Starting 8000B - FW name format has changed. This overwrites the
243-
* previous name and uses the new format.
244-
*/
245-
if (drv->trans->cfg->device_family == IWL_DEVICE_FAMILY_8000) {
246-
char rev_step = 'A' + CSR_HW_REV_STEP(drv->trans->hw_rev);
247-
248-
if (rev_step != 'A')
249-
snprintf(drv->firmware_name,
250-
sizeof(drv->firmware_name), "%s%c-%s.ucode",
251-
name_pre, rev_step, tag);
252-
}
253-
254241
IWL_DEBUG_INFO(drv, "attempting to load firmware %s'%s'\n",
255242
(drv->fw_index == UCODE_EXPERIMENTAL_INDEX)
256243
? "EXPERIMENTAL " : "",

0 commit comments

Comments
 (0)