qcacld-3.0: Cleanup sta_index in TDLS structures and APIs

Remove sta index references in TDLS structures and APIs
and mac address would be used instead to refer the peer.

Change-Id: I861f7ce068f3f545598129b9f3955b84b2a6fbce
CRs-Fixed: 2524512
此提交包含在:
Yeshwanth Sriram Guntuka
2019-07-16 15:47:21 +05:30
提交者 nshrivas
父節點 d2a2291473
當前提交 4ac1584527
共有 18 個檔案被更改,包括 74 行新增107 行删除

查看文件

@@ -86,12 +86,8 @@
#define TDLS_TEARDOWN_PEER_UNREACHABLE 25
#define TDLS_TEARDOWN_PEER_UNSPEC_REASON 26
#define INVALID_TDLS_PEER_ID 0xFF
#define INVALID_TDLS_PEER_INDEX 0xFF
#define TDLS_STA_INDEX_CHECK(sta_id) \
(((sta_id) >= 0) && ((sta_id) < 0xFF))
/**
* enum tdls_add_oper - add peer type
* @TDLS_OPER_NONE: none
@@ -599,7 +595,6 @@ typedef void (*tdls_evt_callback) (void *data,
typedef QDF_STATUS (*tdls_register_peer_callback)(void *userdata,
uint32_t vdev_id,
const uint8_t *mac,
uint16_t stat_id,
uint8_t qos);
/* This callback is used to deregister TDLS peer from the datapath */
@@ -1212,7 +1207,6 @@ struct tdls_mgmt_tx_completion_ind {
* @status_code: status code as tSirResultCodes
* @peermac: MAC address of the TDLS peer
* @session_id: session id
* @sta_id: sta id
* @sta_type: sta type
* @tdls_oper: add peer type
* @psoc: soc object
@@ -1221,7 +1215,6 @@ struct tdls_add_sta_rsp {
QDF_STATUS status_code;
struct qdf_mac_addr peermac;
uint8_t session_id;
uint16_t sta_id;
uint16_t sta_type;
enum tdls_add_oper tdls_oper;
struct wlan_objmgr_psoc *psoc;
@@ -1232,14 +1225,12 @@ struct tdls_add_sta_rsp {
* @session_id: session id
* @status_code: status code as tSirResultCodes
* @peermac: MAC address of the TDLS peer
* @sta_id: sta id
* @psoc: soc object
*/
struct tdls_del_sta_rsp {
uint8_t session_id;
QDF_STATUS status_code;
struct qdf_mac_addr peermac;
uint16_t sta_id;
struct wlan_objmgr_psoc *psoc;
};