From ff2450a4f1e07b6f1b0be4d5f783162a33cc5f06 Mon Sep 17 00:00:00 2001 From: Rajasekaran Kalidoss Date: Tue, 22 Sep 2020 11:40:33 +0530 Subject: [PATCH] qcacld-3.0: Handle new status code for already suspended TWT session Firmware sends a new status code to indicate an already suspended TWT session. Handle this error code and return QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED to userspace. CRs-Fixed: 2786986 Change-Id: I7111128c908c14058e5ed0ef94c2eabc778d38bb --- core/hdd/src/wlan_hdd_twt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_twt.c b/core/hdd/src/wlan_hdd_twt.c index 16312853ce..81b455d985 100644 --- a/core/hdd/src/wlan_hdd_twt.c +++ b/core/hdd/src/wlan_hdd_twt.c @@ -771,6 +771,8 @@ wmi_twt_pause_status_to_vendor_twt_status(enum WMI_HOST_PAUSE_TWT_STATUS status) return QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM; case WMI_HOST_PAUSE_TWT_STATUS_DIALOG_ID_BUSY: return QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY; + case WMI_HOST_PAUSE_TWT_STATUS_ALREADY_PAUSED: + return QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED; case WMI_HOST_PAUSE_TWT_STATUS_NO_RESOURCE: return QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE; case WMI_HOST_PAUSE_TWT_STATUS_NO_ACK: