Browse Source

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
Rajasekaran Kalidoss 4 years ago
parent
commit
ff2450a4f1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/hdd/src/wlan_hdd_twt.c

+ 2 - 0
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: