ath10k: update the max num of peers supported for WCN3990
authorAbhishek Ambure <aambure@codeaurora.org>
Tue, 19 Feb 2019 10:01:08 +0000 (15:31 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 Feb 2019 13:06:38 +0000 (15:06 +0200)
WCN3990 firmware versions WLAN.HL.2.0-01617-QCAHLSWMTPLZ-1 & onwards
supports maximum 33 peers including self peer. To support maximum peers,
send updated peer param to firmware during initialization.

Tested HW: WCN3990
Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1

Signed-off-by: Abhishek Ambure <aambure@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/hw.h

index 7ccd6741c5b0dff38295242be2c9c78b96c99391..c2d2155580eb1a074778b05bc6381f8e919b6c5b 100644 (file)
@@ -549,10 +549,10 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = {
                .sw_decrypt_mcast_mgmt = true,
                .hw_ops = &wcn3990_ops,
                .decap_align_bytes = 1,
-               .num_peers = TARGET_HL_10_TLV_NUM_PEERS,
+               .num_peers = TARGET_HL_TLV_NUM_PEERS,
                .n_cipher_suites = 11,
-               .ast_skid_limit = TARGET_HL_10_TLV_AST_SKID_LIMIT,
-               .num_wds_entries = TARGET_HL_10_TLV_NUM_WDS_ENTRIES,
+               .ast_skid_limit = TARGET_HL_TLV_AST_SKID_LIMIT,
+               .num_wds_entries = TARGET_HL_TLV_NUM_WDS_ENTRIES,
                .target_64bit = true,
                .rx_ring_fill_level = HTT_RX_RING_FILL_LEVEL_DUAL_MAC,
                .per_ce_irq = true,
index 97ca42c4e3b42d769c610a7c5ae6d7e830bca2a2..71314999aa2467a1fbe3b7d77fccb7ce3f35d6ca 100644 (file)
@@ -752,9 +752,9 @@ ath10k_is_rssi_enable(struct ath10k_hw_params *hw,
 #define TARGET_TLV_MGMT_NUM_MSDU_DESC          (50)
 
 /* Target specific defines for WMI-HL-1.0 firmware */
-#define TARGET_HL_10_TLV_NUM_PEERS             14
-#define TARGET_HL_10_TLV_AST_SKID_LIMIT                6
-#define TARGET_HL_10_TLV_NUM_WDS_ENTRIES       2
+#define TARGET_HL_TLV_NUM_PEERS                        33
+#define TARGET_HL_TLV_AST_SKID_LIMIT           16
+#define TARGET_HL_TLV_NUM_WDS_ENTRIES          2
 
 /* Diagnostic Window */
 #define CE_DIAG_PIPE   7