NAN_ERROR_OPERATION_FAILED,
NAN_ERROR_INVALID_PARAMETER,
NAN_ERROR_MEMORY,
- NAN_ERROR_ABORT,
+ NAN_ERROR_ABORT, // 5
NAN_ERROR_BUSY,
NAN_ERROR_TIMED_OUT,
NAN_ERROR_NOT_AVAILABLE,
NAN_ERROR_NOT_ALLOWED,
- NAN_ERROR_ALREADY_ENABLED,
+ NAN_ERROR_ALREADY_ENABLED, // 10
NAN_ERROR_NO_CLIENT,
NAN_ERROR_TOO_MANY_REQUESTS,
NAN_ERROR_REJECTED_BY_PEER,
NAN_ERROR_INTERFACE_DOWN,
- NAN_ERROR_UNKNOWN,
+ NAN_ERROR_UNKNOWN, // 15
// Internal errors
NAN_ERROR_DRIVER_ENABLED = 0x100,
static NanError convertLegacyStatusToNanError(NanStatusType status)
{
+ NAN_LOGD("Status(%d)", status);
switch(status) {
case NAN_STATUS_SUCCESS:
return NAN_ERROR_NONE;
NAN_LOGD("appInfoLen: %u", dataPathConfirmEvent.appInfoLen);
dataPathConfirmEvent.result = convertLegacyStatusToNanError(event->reason_code);
+ NAN_LOGD("reason code: %d, error: %d", event->reason_code, dataPathConfirmEvent.result);
on_notify_data_path_confirm_event(dataPathConfirmEvent);
__NAN_LOG_FUNC_EXIT__;