qcacld-3.0: Add support to send TDLS avail and no. connected peer

Add support to send whether currently TDLS is available or not.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS
Vendor attr: QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE

Also add support to get the TDLS number of active sessions
using below vendor attr.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS
Vendor attr: QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS

Change-Id: Ie9ad09de9593559c4d57599a9af58a95af99e60f
CRs-Fixed: 3554429
This commit is contained in:
Deeksha Gupta
2023-07-24 11:00:11 +05:30
committed by Rahul Choudhary
parent 35e5e0117e
commit 167488b437
6 changed files with 196 additions and 2 deletions

View File

@@ -30,6 +30,7 @@
#include <wlan_mlme_api.h>
#include <wlan_mlme_main.h>
#include "wma_tgt_cfg.h"
#include "wlan_mlme_vdev_mgr_interface.h"
/**
* ucfg_mlme_init() - initialize mlme_ctx context.
@@ -282,6 +283,19 @@ ucfg_mlme_peer_config_vlan(struct wlan_objmgr_vdev *vdev,
return wlan_mlme_peer_config_vlan(vdev, macaddr);
}
/**
* ucfg_mlme_get_tdls_prohibited() - get if TDLS prohibited is advertised by
* the connected AP.
* @vdev: vdev pointer
*
* Return: bool
*/
static inline
bool ucfg_mlme_get_tdls_prohibited(struct wlan_objmgr_vdev *vdev)
{
return mlme_get_tdls_prohibited(vdev);
}
#ifdef MULTI_CLIENT_LL_SUPPORT
/**
* ucfg_mlme_get_wlm_multi_client_ll_caps() - Get multi client latency level