Jelajahi Sumber

qcacld-3.0: Add mapping for WMI to Host TWT nudge status

Add mapping for WMI_NUDGE_TWT_STATUS_ALREADY_PAUSED on host side

Change-Id: I4109677a55cf6eaa421c5a881ec18cf6e2add375
CRs-Fixed: 3181041
David Oladunjoye 2 tahun lalu
induk
melakukan
a55c5f6b53
2 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 3 0
      core/hdd/src/wlan_hdd_twt.c
  2. 2 0
      os_if/twt/src/osif_twt_ext_rsp.c

+ 3 - 0
core/hdd/src/wlan_hdd_twt.c

@@ -1419,6 +1419,8 @@ wmi_twt_nudge_status_to_vendor_twt_status(enum WMI_HOST_NUDGE_TWT_STATUS status)
 		return QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK;
 	case WMI_HOST_NUDGE_TWT_STATUS_UNKNOWN_ERROR:
 		return QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR;
+	case WMI_HOST_NUDGE_TWT_STATUS_ALREADY_PAUSED:
+		return QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED;
 	case WMI_HOST_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS:
 		return QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS;
 	default:
@@ -3174,6 +3176,7 @@ int hdd_send_twt_nudge_dialog_cmd(struct hdd_context *hdd_ctx,
 
 		switch (ack_priv->status) {
 		case WMI_HOST_NUDGE_TWT_STATUS_INVALID_PARAM:
+		case WMI_HOST_NUDGE_TWT_STATUS_ALREADY_PAUSED:
 		case WMI_HOST_NUDGE_TWT_STATUS_UNKNOWN_ERROR:
 			ret = -EINVAL;
 			break;

+ 2 - 0
os_if/twt/src/osif_twt_ext_rsp.c

@@ -268,6 +268,8 @@ twt_nudge_status_to_vendor_twt_status(enum HOST_TWT_NUDGE_STATUS status)
 		return QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK;
 	case HOST_TWT_NUDGE_STATUS_UNKNOWN_ERROR:
 		return QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR;
+	case HOST_TWT_NUDGE_STATUS_ALREADY_PAUSED:
+		return QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED;
 	case HOST_TWT_NUDGE_STATUS_CHAN_SW_IN_PROGRESS:
 		return QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS;
 	default: