From 9b4bbfc115021acebeef898612876bd4258105c0 Mon Sep 17 00:00:00 2001 From: Pragaspathi Thilagaraj Date: Fri, 19 Mar 2021 16:42:07 +0530 Subject: [PATCH] qcacmn: Add new TWT teardown status code Add new TWT teardown status code to indicate firmware teared down the TWT session due to concurrent connection established. Change-Id: I9b0fb5c5179355f34bd07e91a996da3ade1c9ce8 CRs-Fixed: 2899575 --- wmi/inc/wmi_unified_twt_param.h | 3 +++ wmi/src/wmi_unified_twt_tlv.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/wmi/inc/wmi_unified_twt_param.h b/wmi/inc/wmi_unified_twt_param.h index 12c104d66270..31209dcadb1e 100644 --- a/wmi/inc/wmi_unified_twt_param.h +++ b/wmi/inc/wmi_unified_twt_param.h @@ -405,6 +405,8 @@ struct wmi_twt_del_dialog_param { * unknown reason * @WMI_HOST_DEL_TWT_STATUS_PEER_INIT_TEARDOWN: Peer initiated TWT teardown * @WMI_HOST_DEL_TWT_STATUS_ROAMING: TWT teardown due to roaming. + * @WMI_HOST_DEL_TWT_STATUS_CONCURRENCY: TWT session teardown due to + * concurrent session comming up. */ enum WMI_HOST_DEL_TWT_STATUS { WMI_HOST_DEL_TWT_STATUS_OK, @@ -416,6 +418,7 @@ enum WMI_HOST_DEL_TWT_STATUS { WMI_HOST_DEL_TWT_STATUS_UNKNOWN_ERROR, WMI_HOST_DEL_TWT_STATUS_PEER_INIT_TEARDOWN, WMI_HOST_DEL_TWT_STATUS_ROAMING, + WMI_HOST_DEL_TWT_STATUS_CONCURRENCY, }; /** diff --git a/wmi/src/wmi_unified_twt_tlv.c b/wmi/src/wmi_unified_twt_tlv.c index 8bd07696a5c5..a189f7eae5d7 100644 --- a/wmi/src/wmi_unified_twt_tlv.c +++ b/wmi/src/wmi_unified_twt_tlv.c @@ -599,6 +599,8 @@ wmi_get_converted_twt_del_dialog_status(WMI_DEL_TWT_STATUS_T tgt_status) return WMI_HOST_DEL_TWT_STATUS_PEER_INIT_TEARDOWN; case WMI_DEL_TWT_STATUS_ROAMING: return WMI_HOST_DEL_TWT_STATUS_ROAMING; + case WMI_DEL_TWT_STATUS_CONCURRENCY: + return WMI_HOST_DEL_TWT_STATUS_CONCURRENCY; default: return WMI_HOST_DEL_TWT_STATUS_UNKNOWN_ERROR; }