[PATCH ath12k-ng 05/13] wifi: ath12k: Rename hw.c to Wi-Fi 7 specific implementation file
Kiran Venkatappa
quic_kiranv at quicinc.com
Tue Aug 12 10:09:31 PDT 2025
Rename hw.c to hw_wifi7.c to reflect its focus on Wi-Fi 7 chipset
specific configurations. Clarify the files role in containing
hardware dependent logic tailored to the Wi-Fi 7 family.
This change is part of a broader effort to modularize the codebase
by separating common and target specific components into distinct
modules for improved clarity and maintainability.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
Signed-off-by: Kiran Venkatappa <quic_kiranv at quicinc.com>
---
drivers/net/wireless/ath/ath12k/Makefile | 2 +-
drivers/net/wireless/ath/ath12k/{hw.c => hw_wifi7.c} | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath12k/Makefile b/drivers/net/wireless/ath/ath12k/Makefile
index fb968884f6560ed8dfeabba0e0a1562a98576313..f1105d7adafff957b8a6ee3231e03a7f6ea47ed2 100644
--- a/drivers/net/wireless/ath/ath12k/Makefile
+++ b/drivers/net/wireless/ath/ath12k/Makefile
@@ -18,7 +18,7 @@ ath12k-y += core.o \
ce_wifi7.o \
peer.o \
dbring.o \
- hw.o \
+ hw_wifi7.o \
mhi.o \
mhi_wifi7.o \
pci.o \
diff --git a/drivers/net/wireless/ath/ath12k/hw.c b/drivers/net/wireless/ath/ath12k/hw_wifi7.c
similarity index 99%
rename from drivers/net/wireless/ath/ath12k/hw.c
rename to drivers/net/wireless/ath/ath12k/hw_wifi7.c
index ad372feaef28be9149f86008453409dad5c5d4f7..f6177f8e032d98774b4a041ecfe97187b55ed259 100644
--- a/drivers/net/wireless/ath/ath12k/hw.c
+++ b/drivers/net/wireless/ath/ath12k/hw_wifi7.c
@@ -1043,13 +1043,14 @@ int ath12k_hw_init(struct ath12k_base *ab)
}
if (i == ARRAY_SIZE(ath12k_hw_params)) {
- ath12k_err(ab, "Unsupported hardware version: 0x%x\n", ab->hw_rev);
+ ath12k_err(ab, "Unsupported Wi-Fi 7 hardware version: 0x%x\n",
+ ab->hw_rev);
return -EINVAL;
}
ab->hw_params = hw_params;
- ath12k_info(ab, "Hardware name: %s\n", ab->hw_params->name);
+ ath12k_info(ab, "Wi-Fi 7 Hardware name: %s\n", ab->hw_params->name);
return 0;
}
--
2.34.1
More information about the ath12k
mailing list