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
This commit is contained in:

committed by
nshrivas

父節點
d2a2291473
當前提交
4ac1584527
@@ -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;
|
||||
};
|
||||
|
||||
|
@@ -340,7 +340,7 @@ QDF_STATUS ucfg_tdls_update_config(struct wlan_objmgr_psoc *psoc,
|
||||
soc_obj->max_num_tdls_sta = WLAN_TDLS_STA_MAX_NUM;
|
||||
|
||||
for (sta_idx = 0; sta_idx < soc_obj->max_num_tdls_sta; sta_idx++) {
|
||||
soc_obj->tdls_conn_info[sta_idx].sta_id = INVALID_TDLS_PEER_ID;
|
||||
soc_obj->tdls_conn_info[sta_idx].valid_entry = false;
|
||||
soc_obj->tdls_conn_info[sta_idx].index =
|
||||
INVALID_TDLS_PEER_INDEX;
|
||||
soc_obj->tdls_conn_info[sta_idx].session_id = 255;
|
||||
|
Reference in New Issue
Block a user