From ef8692ef8a64bdf3f36e00c558cd72fc389b116a Mon Sep 17 00:00:00 2001 From: Bala Venkatesh Date: Fri, 8 Mar 2019 13:04:06 +0530 Subject: [PATCH] qcacld-3.0: Send correct vdev_id to enable TDLS in FW After STA or P2P cli disconnection, TDLS component is notfied of the disconnection to check if the TDLS can be enabled in FW and host. But while sending tdls set state command to FW, the disconnected vdev_id is given to FW. This can result in FW assert while processing the next tdls commands. Change-Id: Ib79547ce9d192b1d8bba3767655b3dada36e5e95 CRs-Fixed: 2412170 --- components/tdls/core/src/wlan_tdls_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/tdls/core/src/wlan_tdls_main.c b/components/tdls/core/src/wlan_tdls_main.c index 02cf20aae20f..77e1f2e42022 100644 --- a/components/tdls/core/src/wlan_tdls_main.c +++ b/components/tdls/core/src/wlan_tdls_main.c @@ -1280,6 +1280,7 @@ tdls_process_sta_disconnect(struct tdls_sta_notify_params *notify) struct tdls_soc_priv_obj *tdls_soc_obj; struct tdls_soc_priv_obj *curr_tdls_soc; struct wlan_objmgr_vdev *temp_vdev = NULL; + uint8_t vdev_id; QDF_STATUS status = QDF_STATUS_SUCCESS; @@ -1312,6 +1313,7 @@ tdls_process_sta_disconnect(struct tdls_sta_notify_params *notify) if (!notify->lfr_roam && !tdls_soc_obj->tdls_disable_in_progress) { temp_vdev = tdls_get_vdev(tdls_soc_obj->soc, WLAN_TDLS_NB_ID); if (NULL != temp_vdev) { + vdev_id = wlan_vdev_get_id(temp_vdev); status = tdls_get_vdev_objects(temp_vdev, &tdls_vdev_obj, &tdls_soc_obj); @@ -1321,7 +1323,7 @@ tdls_process_sta_disconnect(struct tdls_sta_notify_params *notify) false, false, true, - notify->session_id); + vdev_id); curr_tdls_vdev = tdls_vdev_obj; curr_tdls_soc = tdls_soc_obj; }