ath10k: fix compile time sanity check for CE4 buffer size
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Tue, 4 Apr 2017 16:52:56 +0000 (22:22 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Apr 2017 12:44:27 +0000 (15:44 +0300)
In 'ath10k_ce_alloc_pipe' the compile time sanity check to
ensure that there is sufficient buffers in CE4 for HTT Tx
MSDU descriptors, but this did not take into account of the
case with 'peer flow control' enabled, fix this.

Cc: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/ce.c

index 9ac0a73a3a9f8f5c250fa5fc5d38cf7799ec727f..ee1090ca2eac5de05796ad3c0ebe54b986e86794 100644 (file)
@@ -1051,7 +1051,7 @@ int ath10k_ce_alloc_pipe(struct ath10k *ar, int ce_id,
         */
        BUILD_BUG_ON(2 * TARGET_NUM_MSDU_DESC >
                     (CE_HTT_H2T_MSG_SRC_NENTRIES - 1));
-       BUILD_BUG_ON(2 * TARGET_10X_NUM_MSDU_DESC >
+       BUILD_BUG_ON(2 * TARGET_10_4_NUM_MSDU_DESC_PFC >
                     (CE_HTT_H2T_MSG_SRC_NENTRIES - 1));
        BUILD_BUG_ON(2 * TARGET_TLV_NUM_MSDU_DESC >
                     (CE_HTT_H2T_MSG_SRC_NENTRIES - 1));