From 3199046f44ac2af2a7939d62a6cab441a0ecf0c1 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Fri, 2 Aug 2019 17:33:50 +0530 Subject: [PATCH] qcacld-3.0: TDLS sta_id cleanup for hdd_update_dp_vdev_flags hdd_update_dp_vdev_flags takes sta_id as input and as a part of clean up of sta_id, replace it by peer mac address. Change-Id: Id9a8c132546d312f5b048485de48535807e2db4b CRs-Fixed: 2506497 --- components/tdls/core/src/wlan_tdls_cmds_process.c | 6 +++--- components/tdls/core/src/wlan_tdls_ct.c | 2 +- components/tdls/dispatcher/inc/wlan_tdls_public_structs.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/tdls/core/src/wlan_tdls_cmds_process.c b/components/tdls/core/src/wlan_tdls_cmds_process.c index c3e457494e..30ebe2a575 100644 --- a/components/tdls/core/src/wlan_tdls_cmds_process.c +++ b/components/tdls/core/src/wlan_tdls_cmds_process.c @@ -1171,7 +1171,7 @@ QDF_STATUS tdls_process_del_peer(struct tdls_oper_request *req) if (soc_obj->tdls_dp_vdev_update) soc_obj->tdls_dp_vdev_update(&soc_obj->soc, - peer->sta_id, + &peer->peer_mac, soc_obj->tdls_update_dp_vdev_flags, false); @@ -1718,7 +1718,7 @@ QDF_STATUS tdls_process_enable_link(struct tdls_oper_request *req) if (soc_obj->tdls_dp_vdev_update) soc_obj->tdls_dp_vdev_update(&soc_obj->soc, - peer->sta_id, + &peer->peer_mac, soc_obj->tdls_update_dp_vdev_flags, ((peer->link_status == TDLS_LINK_CONNECTED) ? true : false)); @@ -1939,7 +1939,7 @@ QDF_STATUS tdls_process_remove_force_peer(struct tdls_oper_request *req) if (soc_obj->tdls_dp_vdev_update) soc_obj->tdls_dp_vdev_update(&soc_obj->soc, - peer->sta_id, + &peer->peer_mac, soc_obj->tdls_update_dp_vdev_flags, false); diff --git a/components/tdls/core/src/wlan_tdls_ct.c b/components/tdls/core/src/wlan_tdls_ct.c index 10a14f218f..a0200b7e0c 100644 --- a/components/tdls/core/src/wlan_tdls_ct.c +++ b/components/tdls/core/src/wlan_tdls_ct.c @@ -532,7 +532,7 @@ void tdls_indicate_teardown(struct tdls_vdev_priv_obj *tdls_vdev, if (tdls_soc->tdls_dp_vdev_update) tdls_soc->tdls_dp_vdev_update(&tdls_soc->soc, - curr_peer->sta_id, + &curr_peer->peer_mac, tdls_soc->tdls_update_dp_vdev_flags, false); diff --git a/components/tdls/dispatcher/inc/wlan_tdls_public_structs.h b/components/tdls/dispatcher/inc/wlan_tdls_public_structs.h index 68edd6e3ca..f167ab0a1f 100644 --- a/components/tdls/dispatcher/inc/wlan_tdls_public_structs.h +++ b/components/tdls/dispatcher/inc/wlan_tdls_public_structs.h @@ -603,7 +603,7 @@ typedef QDF_STATUS /* This callback is used to update datapath vdev flags */ typedef QDF_STATUS (*tdls_dp_vdev_update_flags_callback)(void *cbk_data, - uint8_t sta_id, + struct qdf_mac_addr *peer_mac, uint32_t vdev_param, bool is_link_up);