qcacld-3.0: Create API for TDLS configure link id

Create API to set link id and used in
wlan_hdd_cfg80211_tdls_mgmt function for MLO TDLS.

Change-Id: I39814db1646362585cb9c3258d7e71c3cabe4204
CRs-Fixed: 3491950
This commit is contained in:
Paul Zhang
2023-05-24 18:43:08 +08:00
committed by Rahul Choudhary
parent 581d7afc7c
commit 3050ccd014
6 changed files with 189 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -233,6 +234,28 @@ QDF_STATUS
cfg_tdls_get_scan_enable(struct wlan_objmgr_psoc *psoc,
bool *val);
/**
* cfg_tdls_get_link_id() - get tdls link id
* @psoc: pointer to psoc object
*
* This function gets tdls link id
*
* Return: int
*/
int cfg_tdls_get_link_id(struct wlan_objmgr_psoc *psoc);
/**
* cfg_tdls_set_link_id() - get tdls link id
* @psoc: pointer to psoc object
* @val: the value of link id
*
* This function gets tdls link id
*
* Return: QDF_STATUS
*/
QDF_STATUS
cfg_tdls_set_link_id(struct wlan_objmgr_psoc *psoc,
int val);
/**
* cfg_tdls_set_scan_enable() - set tdls scan enable
* @psoc: pointer to psoc object
@@ -410,6 +433,18 @@ cfg_tdls_set_scan_enable(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_SUCCESS;
}
static inline int
cfg_tdls_get_link_id(struct wlan_objmgr_psoc *psoc)
{
return 0;
}
static inline QDF_STATUS
cfg_tdls_set_link_id(struct wlan_objmgr_psoc *psoc,
int val)
{
return QDF_STATUS_SUCCESS;
}
static inline uint16_t
cfg_tdls_get_max_peer_count(struct wlan_objmgr_psoc *psoc)
{

View File

@@ -505,6 +505,7 @@ enum tdls_feature_bit {
* @tdls_scan_enable: tdls scan enable
* @tdls_sleep_sta_enable: tdls sleep sta enable
* @tdls_support_enable: tdls support enable
* @tdls_link_id: mlo link id
*/
struct tdls_user_config {
uint32_t tdls_tx_states_period;
@@ -538,6 +539,7 @@ struct tdls_user_config {
bool tdls_scan_enable;
bool tdls_sleep_sta_enable;
bool tdls_support_enable;
int tdls_link_id;
};
/**