qcacld-3.0: Add initial checks for TDLS concurrencies

Check if TDLS is allowed for the current existing concurrency
combination. In below combinations, TDLS is not allowed:
1. MCC on STA vdev
2. STA + STA
3. Total connection count > 3
4. No STA vdev exists

If existing TDLS connection exists when 4th port is coming up,
then teardown the TDLS connection and disable off channel.

Change-Id: Iabe174bedecfa6147bd9de3cb2a3716b63145456
CRs-Fixed: 3435864
This commit is contained in:
Pragaspathi Thilagaraj
2023-02-08 03:53:48 +05:30
committed by Madan Koyyalamudi
parent c92b309cfa
commit 37a1c90ea3
4 changed files with 128 additions and 86 deletions

View File

@@ -54,7 +54,7 @@
#define WLAN_TDLS_PREFERRED_OFF_CHANNEL_NUM_MAX 165
#define WLAN_TDLS_PREFERRED_OFF_CHANNEL_NUM_DEF 36
#define WLAN_TDLS_PREFERRED_OFF_CHANNEL_FRQ_DEF 5180
#define WLAN_TDLS_MAX_CONCURRENT_VDEV_SUPPORTED 3
#define AC_PRIORITY_NUM 4