]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: ath12k: Rename hw.c to Wi-Fi 7 specific implementation file
authorKiran Venkatappa <quic_kiranv@quicinc.com>
Tue, 12 Aug 2025 17:09:31 +0000 (22:39 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Wed, 20 Aug 2025 21:39:04 +0000 (14:39 -0700)
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@quicinc.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Link: https://patch.msgid.link/20250812-ath12k-mod-v1-5-8c9b0eb9335d@quicinc.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/Makefile
drivers/net/wireless/ath/ath12k/hw_wifi7.c [moved from drivers/net/wireless/ath/ath12k/hw.c with 99% similarity]

index fb968884f6560ed8dfeabba0e0a1562a98576313..f1105d7adafff957b8a6ee3231e03a7f6ea47ed2 100644 (file)
@@ -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 \
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 (file)
@@ -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;
 }