From 7047265bbee95489ecb2f282044efa7009d02907 Mon Sep 17 00:00:00 2001 From: gbian Date: Thu, 2 Jun 2016 10:29:49 +0800 Subject: qcacld-2.0: Fix 32 clients support issue in AP+AP mode Fail to allocate local peer id when connecting the last 32th station in AP+AP mode. The reason is the OL_TXRX_NUM_LOCAL_PEER_IDS is defined to 33, but each AP's peer will occupy one ID. So the remainder are not enough, change this macro to 34 will fix this issue. Change-Id: Ie5b63b6885fd7f2d4f941b6ffad43cbac57040e5 CRs-Fixed: 1022956 --- CORE/CLD_TXRX/TXRX/ol_txrx_types.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CORE/CLD_TXRX/TXRX/ol_txrx_types.h b/CORE/CLD_TXRX/TXRX/ol_txrx_types.h index 37894217dd8d..466db8462415 100644 --- a/CORE/CLD_TXRX/TXRX/ol_txrx_types.h +++ b/CORE/CLD_TXRX/TXRX/ol_txrx_types.h @@ -360,7 +360,12 @@ struct ol_tx_sched_t; typedef struct ol_tx_sched_t *ol_tx_sched_handle; #ifndef OL_TXRX_NUM_LOCAL_PEER_IDS -#define OL_TXRX_NUM_LOCAL_PEER_IDS 33 /* default */ + +/* + * Each AP will occupy one ID, so it will occupy two IDs for AP-AP mode. + * And the remainder IDs will be assigned to other 32 clients. + */ +#define OL_TXRX_NUM_LOCAL_PEER_IDS (2 + 32) #endif #ifndef ol_txrx_local_peer_id_t -- cgit v1.2.3