From c66705291bbc589568eced24d0a0815186802d5c Mon Sep 17 00:00:00 2001 From: Jia Ding Date: Sat, 28 Mar 2020 09:46:33 +0800 Subject: [PATCH] qcacmn: Properly set OL_TXRX_NUM_LOCAL_PEER_IDS Set OL_TXRX_NUM_LOCAL_PEER_IDS to WLAN_MAX_CLIENTS_ALLOWED if WLAN_MAX_CLIENTS_ALLOWED is defined. Change-Id: Ifb5c6ab15e791f92aa8503537e624195cf3fad6d CRs-Fixed: 2694492 --- dp/inc/cdp_txrx_cmn_struct.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dp/inc/cdp_txrx_cmn_struct.h b/dp/inc/cdp_txrx_cmn_struct.h index 1104ebf000..7da213a737 100644 --- a/dp/inc/cdp_txrx_cmn_struct.h +++ b/dp/inc/cdp_txrx_cmn_struct.h @@ -43,6 +43,10 @@ #include "cdp_txrx_extd_struct.h" #endif +#ifdef WLAN_MAX_CLIENTS_ALLOWED +#define OL_TXRX_NUM_LOCAL_PEER_IDS (WLAN_MAX_CLIENTS_ALLOWED + 1 + 1 + 1) +#endif + #ifndef OL_TXRX_NUM_LOCAL_PEER_IDS /* * Each AP will occupy one ID, so it will occupy two IDs for AP-AP mode.