The oldest firmware core supported by devices that use the iwlmld op mode is now core107, which uses version 8 of UCODE_ALIVE_NTFY. No supported firmware uses version 7 anymore, so remove it. Assisted-by: LLM Signed-off-by: Miri Korenblit --- drivers/net/wireless/intel/iwlwifi/mld/fw.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mld/fw.c b/drivers/net/wireless/intel/iwlwifi/mld/fw.c index c749b2abc69b..a4c8102d27a4 100644 --- a/drivers/net/wireless/intel/iwlwifi/mld/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mld/fw.c @@ -112,12 +112,9 @@ static bool iwl_alive_fn(struct iwl_notif_wait_data *notif_wait, struct iwl_rx_packet *pkt, void *data) { unsigned int pkt_len = iwl_rx_packet_payload_len(pkt); - unsigned int expected_sz; struct iwl_mld *mld = container_of(notif_wait, struct iwl_mld, notif_wait); struct iwl_trans *trans = mld->trans; - u32 version = iwl_fw_lookup_notif_ver(mld->fw, LEGACY_GROUP, - UCODE_ALIVE_NTFY, 0); struct iwl_mld_alive_data *alive_data = data; struct iwl_alive_ntf *palive; struct iwl_umac_alive *umac; @@ -127,18 +124,7 @@ static bool iwl_alive_fn(struct iwl_notif_wait_data *notif_wait, u32 umac_error_table; u16 status; - switch (version) { - case 7: - expected_sz = sizeof(struct iwl_alive_ntf_v7); - break; - case 8: - expected_sz = sizeof(struct iwl_alive_ntf); - break; - default: - return false; - } - - if (pkt_len != expected_sz) + if (pkt_len != sizeof(*palive)) return false; palive = (void *)pkt->data; @@ -190,9 +176,8 @@ static bool iwl_alive_fn(struct iwl_notif_wait_data *notif_wait, IWL_DEBUG_FW(mld, "FW alive flags 0x%x\n", le16_to_cpu(palive->flags)); - if (version >= 8) - IWL_DEBUG_FW(mld, "platform_id 0x%llx\n", - le64_to_cpu(palive->platform_id)); + IWL_DEBUG_FW(mld, "platform_id 0x%llx\n", + le64_to_cpu(palive->platform_id)); iwl_fwrt_update_fw_versions(&mld->fwrt, lmac1, umac); -- 2.34.1