]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ath12k: Remove redundant TID calculation for QCN9274
authorAaradhana Sahu <aaradhana.sahu@oss.qualcomm.com>
Tue, 8 Jul 2025 18:11:00 +0000 (23:41 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Mon, 14 Jul 2025 14:32:15 +0000 (07:32 -0700)
Currently, host sends num_tids (number of TID (Traffic Identifier))
value to firmware via WMI_INIT_CMD during WMI initialization. However,
the firmware does not use this value, as it determines the number of
TIDs using its own internal logic.

Hence, remove the redundant num_tids calculation logic for QCN9274.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 WLAN.HMT.1.1.c5-00284.1-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Aaradhana Sahu <aaradhana.sahu@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20250708181102.4111054-3-aaradhana.sahu@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/core.c
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/hw.h
drivers/net/wireless/ath/ath12k/wmi.c

index 8b0c6773517155564c88078d622a42de8ed92b62..037486553ba08787bf8253110e10e58167f79501 100644 (file)
@@ -638,15 +638,6 @@ u32 ath12k_core_get_max_peers_per_radio(struct ath12k_base *ab)
        return TARGET_NUM_PEERS_PDEV_SINGLE;
 }
 
-u32 ath12k_core_get_max_num_tids(struct ath12k_base *ab)
-{
-       if (ab->num_radios == 2)
-               return TARGET_NUM_TIDS(DBS);
-       else if (ab->num_radios == 3)
-               return TARGET_NUM_TIDS(DBS_SBS);
-       return TARGET_NUM_TIDS(SINGLE);
-}
-
 struct reserved_mem *ath12k_core_get_reserved_mem(struct ath12k_base *ab,
                                                  int index)
 {
index b062bbb1737d089d168909d476c4b71215cbeb8d..8638ba49dca4df41dad1d0779efb3d38aa5d67e5 100644 (file)
@@ -1357,7 +1357,6 @@ const struct firmware *ath12k_core_firmware_request(struct ath12k_base *ab,
                                                    const char *filename);
 u32 ath12k_core_get_max_station_per_radio(struct ath12k_base *ab);
 u32 ath12k_core_get_max_peers_per_radio(struct ath12k_base *ab);
-u32 ath12k_core_get_max_num_tids(struct ath12k_base *ab);
 
 void ath12k_core_hw_group_set_mlo_capable(struct ath12k_hw_group *ag);
 void ath12k_fw_stats_init(struct ath12k *ar);
index 0a75bc5abfa2410ab3c7b6ce038f4d5f6445ecf9..4e10d5df2919280db4d6f33273d0aadff358b138 100644 (file)
@@ -45,8 +45,6 @@
 
 #define TARGET_NUM_PEERS(x)    TARGET_NUM_PEERS_##x
 #define TARGET_NUM_PEER_KEYS   2
-#define TARGET_NUM_TIDS(x)     (2 * TARGET_NUM_PEERS(x) + \
-                                4 * TARGET_NUM_VDEVS + 8)
 
 #define TARGET_AST_SKID_LIMIT  16
 #define TARGET_NUM_OFFLD_PEERS 4
index b5b1f93ea22dcfa9b8cecd71731ef0848b91d9f8..78934925ca112c278f3ac7703d1b01ec19f25ff4 100644 (file)
@@ -204,7 +204,6 @@ void ath12k_wmi_init_qcn9274(struct ath12k_base *ab,
        config->num_vdevs = ab->num_radios * TARGET_NUM_VDEVS;
        config->num_peers = ab->num_radios *
                ath12k_core_get_max_peers_per_radio(ab);
-       config->num_tids = ath12k_core_get_max_num_tids(ab);
        config->num_offload_peers = TARGET_NUM_OFFLD_PEERS;
        config->num_offload_reorder_buffs = TARGET_NUM_OFFLD_REORDER_BUFFS;
        config->num_peer_keys = TARGET_NUM_PEER_KEYS;