From 674614ab3c0fe1a9bf08573f93e53616e5344be1 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Tue, 14 Apr 2020 01:02:58 +0530 Subject: [PATCH] qcacmn: Add serialization command to get disconnect stats Currently for SAP case on the disconnection with the client, host driver sends get stats command for the disconnected peer to the FW and proceeds with the peer deletion. There is a race condition where if the peer gets deleted in the object manager before FW sends the requested stats in that case host driver drops the response from the FW. To resolve above issue send the get stats request command in serialization before peer delete command gets serialized which will ensure that get stats response is processed before peer delete in the object manager. Change-Id: Iaa63e299ddfd3ca46c80bd79c3461c183fc0a62f CRs-Fixed: 2664328 --- umac/cmn_services/serialization/inc/wlan_serialization_api.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/umac/cmn_services/serialization/inc/wlan_serialization_api.h b/umac/cmn_services/serialization/inc/wlan_serialization_api.h index 0e68fe8ac879..616b18e7dec3 100644 --- a/umac/cmn_services/serialization/inc/wlan_serialization_api.h +++ b/umac/cmn_services/serialization/inc/wlan_serialization_api.h @@ -192,6 +192,7 @@ typedef QDF_STATUS (*wlan_ser_umac_cmd_cb)(void *umac_cmd); * @WLAN_SER_CMD_VDEV_RESTART: Cmd to restart a VDEV * @WLAN_SER_CMD_PDEV_RESTART: Cmd to restart all VDEVs of a PDEV * @WLAN_SER_CMD_PDEV_CSA_RESTART: Cmd to CSA restart all AP VDEVs of a PDEV + * @WLAN_SER_CMD_GET_DISCONNECT_STATS: Cmd to get peer stats on disconnection */ enum wlan_serialization_cmd_type { /* all scan command before non-scan */ @@ -229,6 +230,7 @@ enum wlan_serialization_cmd_type { WLAN_SER_CMD_VDEV_RESTART, WLAN_SER_CMD_PDEV_RESTART, WLAN_SER_CMD_PDEV_CSA_RESTART, + WLAN_SER_CMD_GET_DISCONNECT_STATS, WLAN_SER_CMD_MAX };