WIFI_LOG(WIFI_INFO, "[%s] success", method);
WIFI_LOG(WIFI_INFO, ", status [%d]", ret);
- if (ret)
+ /**
+ * Below are the expected error codes
+ * 0x00 - NETCONFIG_ERROR_TDLS_NO_ERROR
+ * 0x01 - NETCONFIG_ERROR_INTERNAL
+ * 0x04 - NETCONFIG_ERROR_TDLS_ALREADY_DONE
+ */
+ if (ret == 0x00 || ret == 0x04)
Error = NET_ERR_NONE;
else
Error = NET_ERR_UNKNOWN;
WIFI_LOG(WIFI_INFO, "[%s] success", method);
WIFI_LOG(WIFI_INFO, ", status [%d]", ret);
- if (ret)
+ /**
+ * Below are the expected error codes
+ * 0x00 - NETCONFIG_ERROR_TDLS_NO_ERROR
+ * 0x01 - NETCONFIG_ERROR_INTERNAL
+ */
+ if (ret == 0x00)
Error = NET_ERR_NONE;
else
Error = NET_ERR_UNKNOWN;
WIFI_LOG(WIFI_INFO, "[%s] success", method);
WIFI_LOG(WIFI_INFO, ", status [%d]", ret);
+ /**
+ * Below are the expected error codes
+ * 0x00 - NETCONFIG_ERROR_TDLS_NO_ERROR
+ * 0x01 - NETCONFIG_ERROR_INTERNAL
+ * 0x04 - NETCONFIG_ERROR_TDLS_ALREADY_DONE
+ */
if (ret == 0x00)
Error = NET_ERR_NONE;
else if (ret == 0x01)
Error = NET_ERR_FAIL_TDLS_DISCOVER;
- else if (ret == 0x04) /*0x04: TDLS Discovery in Progress at lower layer*/
+ else if (ret == 0x04) /* 0x04: TDLS Discovery in Progress at lower layer */
Error = NET_ERR_IN_PROGRESS;
else
Error = NET_ERR_UNKNOWN;