Skip to content

Commit 1c022d0

Browse files
sisodiyamukeshjmberg-intel
authored andcommitted
wifi: iwlwifi: Add rf_mapping of new wifi7 devices
Add the CSR register details for new wifi7 devices and correctly set rf_name for devices with FM and WP radios. Signed-off-by: Mukesh Sisodiya <[email protected]> Reviewed-by: Gregory Greenman <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://msgid.link/20231219215605.a9c04b1e9d13.Ibf258d5e6370d8840a2560282988a1c26377c410@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 43ea403 commit 1c022d0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

drivers/net/wireless/intel/iwlwifi/iwl-csr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ enum {
354354
#define CSR_HW_RF_ID_TYPE_GF (0x0010D000)
355355
#define CSR_HW_RF_ID_TYPE_GF4 (0x0010E000)
356356
#define CSR_HW_RF_ID_TYPE_MS (0x00111000)
357+
#define CSR_HW_RF_ID_TYPE_FM (0x00112000)
358+
#define CSR_HW_RF_ID_TYPE_WP (0x00113000)
357359

358360
/* HW_RF CHIP STEP */
359361
#define CSR_HW_RF_STEP(_val) (((_val) >> 8) & 0xF)

drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,16 @@ static void iwl_pcie_get_rf_name(struct iwl_trans *trans)
290290
case CSR_HW_RFID_TYPE(CSR_HW_RF_ID_TYPE_MS):
291291
pos = scnprintf(buf, buflen, "MS");
292292
break;
293+
case CSR_HW_RFID_TYPE(CSR_HW_RF_ID_TYPE_FM):
294+
pos = scnprintf(buf, buflen, "FM");
295+
break;
296+
case CSR_HW_RFID_TYPE(CSR_HW_RF_ID_TYPE_WP):
297+
if (SILICON_Z_STEP ==
298+
CSR_HW_RFID_STEP(trans->hw_rf_id))
299+
pos = scnprintf(buf, buflen, "WHTC");
300+
else
301+
pos = scnprintf(buf, buflen, "WH");
302+
break;
293303
default:
294304
return;
295305
}

0 commit comments

Comments
 (0)