qcacld-3.0: Add ini to configure max tdls peer count

Add ini "gTDLSMaxPeerCount" to configure max tdls peer count.

Change-Id: I45c287c6c9a2fa1dcebcea54fdd0fc0d8a14b064
CRs-Fixed: 2718971
This commit is contained in:
Wu Gao
2020-06-25 22:50:47 +08:00
committed by nshrivas
parent b81a7cfb7d
commit 4e5a1591c5
8 changed files with 226 additions and 20 deletions

View File

@@ -369,3 +369,17 @@ cfg_tdls_set_scan_enable(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_SUCCESS;
}
uint16_t
cfg_tdls_get_max_peer_count(struct wlan_objmgr_psoc *psoc)
{
struct tdls_soc_priv_obj *soc_obj;
soc_obj = wlan_psoc_get_tdls_soc_obj(psoc);
if (!soc_obj) {
tdls_err("tdls soc null");
return 1;
}
return soc_obj->max_num_tdls_sta;
}