From 52945c51a9662cdd4327c150f33120b44179a103 Mon Sep 17 00:00:00 2001 From: David Oladunjoye Date: Fri, 22 Apr 2022 15:17:46 -0700 Subject: [PATCH] qcacmn: umac: Add mapping for WMI to Host TWT nudge status Add mapping for WMI_NUDGE_TWT_STATUS_ALREADY_PAUSED on host side. Change-Id: Ia7bcd78cfc709677b9b28a9fc2703e30f3cb2b7b CRs-Fixed: 3181119 --- umac/twt/dispatcher/inc/wlan_twt_public_structs.h | 1 + wmi/inc/wmi_unified_twt_param.h | 3 +++ wmi/src/wmi_unified_twt_tlv.c | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/umac/twt/dispatcher/inc/wlan_twt_public_structs.h b/umac/twt/dispatcher/inc/wlan_twt_public_structs.h index 34c5aad5e4..f9feeb6583 100644 --- a/umac/twt/dispatcher/inc/wlan_twt_public_structs.h +++ b/umac/twt/dispatcher/inc/wlan_twt_public_structs.h @@ -767,6 +767,7 @@ enum HOST_TWT_NUDGE_STATUS { HOST_TWT_NUDGE_STATUS_NO_RESOURCE, HOST_TWT_NUDGE_STATUS_NO_ACK, HOST_TWT_NUDGE_STATUS_UNKNOWN_ERROR, + HOST_TWT_NUDGE_STATUS_ALREADY_PAUSED, HOST_TWT_NUDGE_STATUS_CHAN_SW_IN_PROGRESS, HOST_TWT_NUDGE_STATUS_ROAM_IN_PROGRESS, HOST_TWT_NUDGE_STATUS_SCAN_IN_PROGRESS, diff --git a/wmi/inc/wmi_unified_twt_param.h b/wmi/inc/wmi_unified_twt_param.h index 2f11501e6c..aef90c2795 100644 --- a/wmi/inc/wmi_unified_twt_param.h +++ b/wmi/inc/wmi_unified_twt_param.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -586,6 +587,7 @@ struct wmi_twt_pause_dialog_complete_event_param { * request/response frame * @WMI_HOST_NUDGE_TWT_STATUS_UNKNOWN_ERROR: nudge TWT dialog failed with an * unknown reason + * @WMI_HOST_NUDGE_TWT_STATUS_ALREADY_PAUSED: TWT dialog already in paused state * @WMI_HOST_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress * @WMI_HOST_NUDGE_TWT_STATUS_ROAM_IN_PROGRESS: Roaming in progress * @WMI_HOST_NUDGE_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress @@ -598,6 +600,7 @@ enum WMI_HOST_NUDGE_TWT_STATUS { WMI_HOST_NUDGE_TWT_STATUS_NO_RESOURCE, WMI_HOST_NUDGE_TWT_STATUS_NO_ACK, WMI_HOST_NUDGE_TWT_STATUS_UNKNOWN_ERROR, + WMI_HOST_NUDGE_TWT_STATUS_ALREADY_PAUSED, WMI_HOST_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS, WMI_HOST_NUDGE_TWT_STATUS_ROAM_IN_PROGRESS, WMI_HOST_NUDGE_TWT_STATUS_SCAN_IN_PROGRESS, diff --git a/wmi/src/wmi_unified_twt_tlv.c b/wmi/src/wmi_unified_twt_tlv.c index 441ca5ac77..0d44d8f1d0 100644 --- a/wmi/src/wmi_unified_twt_tlv.c +++ b/wmi/src/wmi_unified_twt_tlv.c @@ -802,6 +802,8 @@ wmi_twt_nudge_status_to_host_twt_status(WMI_TWT_NUDGE_STATUS_T status) return HOST_TWT_NUDGE_STATUS_NO_RESOURCE; case WMI_NUDGE_TWT_STATUS_NO_ACK: return HOST_TWT_NUDGE_STATUS_NO_ACK; + case WMI_NUDGE_TWT_STATUS_ALREADY_PAUSED: + return HOST_TWT_NUDGE_STATUS_ALREADY_PAUSED; case WMI_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS: return HOST_TWT_NUDGE_STATUS_CHAN_SW_IN_PROGRESS; case WMI_NUDGE_TWT_STATUS_ROAM_IN_PROGRESS: @@ -1924,6 +1926,8 @@ wmi_twt_nudge_status_to_host_twt_status(WMI_TWT_NUDGE_STATUS_T status) return WMI_HOST_NUDGE_TWT_STATUS_NO_ACK; case WMI_NUDGE_TWT_STATUS_UNKNOWN_ERROR: return WMI_HOST_NUDGE_TWT_STATUS_UNKNOWN_ERROR; + case WMI_NUDGE_TWT_STATUS_ALREADY_PAUSED: + return WMI_HOST_NUDGE_TWT_STATUS_ALREADY_PAUSED; case WMI_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS: return WMI_HOST_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS; case WMI_NUDGE_TWT_STATUS_ROAM_IN_PROGRESS: