Home | History | Annotate | Download | only in inc
      1 /*
      2  * oserr.h
      3  *
      4  * Copyright 2001-2009 Texas Instruments, Inc. - http://www.ti.com/
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *     http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 
     19 /**
     20  * \file  osErr.h
     21  * \brief Declare error codes returned by OS abstraction
     22  */
     23 
     24 #ifndef __OS_ERR_H__
     25 #define __OS_ERR_H__
     26 
     27 typedef enum
     28 {
     29     EOALERR_NO_ERR = 0,
     30     EOALERR_CU_WEXT_ERROR_CANT_ALLOCATE = -1,
     31     EOALERR_IPC_STA_ERROR_SENDING_WEXT = -2,
     32     EOALERR_IPC_EVENT_ERROR_EVENT_NOT_DEFINED = -3,
     33     EOALERR_IPC_EVENT_ERROR_EVENT_ALREADY_ENABLED = -4,
     34     EOALERR_IPC_EVENT_ERROR_EVENT_ALREADY_DISABLED = -5,
     35     EOALERR_IPC_WPA_ERROR_CANT_CONNECT_TO_SUPPL = -6,
     36     EOALERR_IPC_WPA_ERROR_CMD_TIMEOUT = -7,
     37     EOALERR_IPC_WPA_ERROR_CMD_FAILED = -8,
     38     EOALERR_MAX_ERROR = EOALERR_IPC_WPA_ERROR_CMD_FAILED
     39 } EOALError;
     40 
     41 typedef enum
     42 {
     43 	ECUERR_CU_ERROR = 								EOALERR_MAX_ERROR - 1,
     44 	ECUERR_CU_CMD_ERROR_DEVICE_NOT_LOADED = 		EOALERR_MAX_ERROR - 2,
     45 	ECUERR_WPA_CORE_ERROR_UNKNOWN_AUTH_MODE = 		EOALERR_MAX_ERROR - 3,
     46 	ECUERR_WPA_CORE_ERROR_KEY_LEN_MUST_BE_SAME = 	EOALERR_MAX_ERROR - 4,
     47 	ECUERR_WPA_CORE_ERROR_FAILED_CONNECT_SSID = 	EOALERR_MAX_ERROR - 5,
     48 	ECUERR_WPA_CORE_ERROR_FAILED_DISCONNECT_SSID= 	EOALERR_MAX_ERROR - 6,
     49 	ECUERR_CU_COMMON_ERROR = 						EOALERR_MAX_ERROR - 7,
     50 	ECUERR_WPA_CORE_ERROR_IVALID_PIN = 				EOALERR_MAX_ERROR - 8,
     51 	ECUERR_WPA_CORE_ERROR_CANT_ALLOC_PIN = 			EOALERR_MAX_ERROR - 9
     52 } ECUError;
     53 
     54 
     55 #endif /* __OS_ERR_H__ */
     56 
     57