Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Kiet Lam | aa8e15a | 2014-02-11 23:30:06 -0800 | [diff] [blame^] | 2 | * Copyright (c) 2012-2013 Qualcomm Atheros, Inc. |
| 3 | * All Rights Reserved. |
| 4 | * Qualcomm Atheros Confidential and Proprietary. |
| 5 | */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6 | /*=========================================================================== |
| 7 | * |
| 8 | * @file: wlan_status_code.h |
| 9 | * |
| 10 | * @brief: Common header file containing all the status codes |
| 11 | * All status codes have been consolidated into one enum |
| 12 | * |
| 13 | * @author: Kumar Anand |
Shailender Karmuchi | 07f514b | 2013-06-25 01:14:09 -0700 | [diff] [blame] | 14 | * Copyright (C) 2010, Qualcomm Technologies, Inc. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 15 | * All rights reserved. |
| 16 | * |
| 17 | *=========================================================================*/ |
| 18 | |
| 19 | #ifndef __WLAN_STATUS_CODE_H__ |
| 20 | #define __WLAN_STATUS_CODE_H__ |
| 21 | |
| 22 | /*------------------------------------------------------------------------- |
| 23 | Include Files |
| 24 | -------------------------------------------------------------------------*/ |
| 25 | |
| 26 | /*---------------------------------------------------------------------------- |
| 27 | * Preprocessor Definitions and Constants |
| 28 | * -------------------------------------------------------------------------*/ |
| 29 | |
| 30 | /* This is to force compiler to use the maximum of an int ( 4 bytes ) */ |
| 31 | #define WLAN_STATUS_MAX_ENUM_SIZE 0x7FFFFFFF |
| 32 | |
| 33 | /*---------------------------------------------------------------------------- |
| 34 | * Type Declarations |
| 35 | * -------------------------------------------------------------------------*/ |
| 36 | |
| 37 | typedef enum |
| 38 | { |
| 39 | /* PAL Request succeeded!*/ |
| 40 | PAL_STATUS_SUCCESS = 0, |
| 41 | |
| 42 | /* HAL Request succeeded!*/ |
| 43 | eHAL_STATUS_SUCCESS = 0, |
| 44 | |
| 45 | /* Request failed because there of an invalid request. This is |
| 46 | typically the result of invalid parameters on the request*/ |
| 47 | PAL_STATUS_INVAL, |
| 48 | |
| 49 | /* Request refused because a request is already in place and |
| 50 | another cannot be handled currently */ |
| 51 | PAL_STATUS_ALREADY, |
| 52 | |
| 53 | /* Request failed because of an empty condition */ |
| 54 | PAL_STATUS_EMPTY, |
| 55 | |
| 56 | /* Request failed for some unknown reason. */ |
| 57 | PAL_STATUS_FAILURE, |
| 58 | |
| 59 | /* HAL general failure */ |
| 60 | eHAL_STATUS_FAILURE, |
| 61 | |
| 62 | /* Invalid Param*/ |
| 63 | eHAL_STATUS_INVALID_PARAMETER, |
| 64 | |
| 65 | /* Invalid Station Index*/ |
| 66 | eHAL_STATUS_INVALID_STAIDX, |
| 67 | |
| 68 | /* DPU descriptor table full*/ |
| 69 | eHAL_STATUS_DPU_DESCRIPTOR_TABLE_FULL, |
| 70 | |
| 71 | /* No interrupts */ |
| 72 | eHAL_STATUS_NO_INTERRUPTS, |
| 73 | |
| 74 | /* Interrupt present */ |
| 75 | eHAL_STATUS_INTERRUPT_PRESENT, |
| 76 | |
| 77 | /* Stable Table is full */ |
| 78 | eHAL_STATUS_STA_TABLE_FULL, |
| 79 | |
| 80 | /* Duplicate Station found */ |
| 81 | eHAL_STATUS_DUPLICATE_STA, |
| 82 | |
| 83 | /* BSSID is invalid */ |
| 84 | eHAL_STATUS_BSSID_INVALID, |
| 85 | |
| 86 | /* STA is invalid */ |
| 87 | eHAL_STATUS_STA_INVALID, |
| 88 | |
| 89 | /* BSSID is is duplicate */ |
| 90 | eHAL_STATUS_DUPLICATE_BSSID, |
| 91 | |
| 92 | /* BSS Idx is invalid */ |
| 93 | eHAL_STATUS_INVALID_BSSIDX, |
| 94 | |
| 95 | /* BSSID Table is full */ |
| 96 | eHAL_STATUS_BSSID_TABLE_FULL, |
| 97 | |
| 98 | /* Invalid DPU signature*/ |
| 99 | eHAL_STATUS_INVALID_SIGNATURE, |
| 100 | |
| 101 | /* Invalid key Id */ |
| 102 | eHAL_STATUS_INVALID_KEYID, |
| 103 | |
| 104 | /* Already on requested channel */ |
| 105 | eHAL_STATUS_SET_CHAN_ALREADY_ON_REQUESTED_CHAN, |
| 106 | |
| 107 | /* UMA descriptor table is full */ |
| 108 | eHAL_STATUS_UMA_DESCRIPTOR_TABLE_FULL, |
| 109 | |
| 110 | /* MIC Key table is full */ |
| 111 | eHAL_STATUS_DPU_MICKEY_TABLE_FULL, |
| 112 | |
| 113 | /* A-MPDU/BA related Error codes */ |
| 114 | eHAL_STATUS_BA_RX_BUFFERS_FULL, |
| 115 | eHAL_STATUS_BA_RX_MAX_SESSIONS_REACHED, |
| 116 | eHAL_STATUS_BA_RX_INVALID_SESSION_ID, |
| 117 | |
| 118 | eHAL_STATUS_TIMER_START_FAILED, |
| 119 | eHAL_STATUS_TIMER_STOP_FAILED, |
| 120 | eHAL_STATUS_FAILED_ALLOC, |
| 121 | |
| 122 | /* Scan failure codes */ |
| 123 | eHAL_STATUS_NOTIFY_BSS_FAIL, |
| 124 | |
| 125 | /* Self STA not deleted as reference count is not zero */ |
| 126 | eHAL_STATUS_DEL_STA_SELF_IGNORED_REF_COUNT_NOT_ZERO, |
| 127 | |
| 128 | /* Self STA not added as entry already exists*/ |
| 129 | eHAL_STATUS_ADD_STA_SELF_IGNORED_REF_COUNT_NOT_ZERO, |
| 130 | |
| 131 | /* Message from SLM has failure status */ |
| 132 | eHAL_STATUS_FW_SEND_MSG_FAILED, |
| 133 | |
| 134 | /* BSS disconnect status : beacon miss */ |
| 135 | eHAL_STATUS_BSS_DISCONN_BEACON_MISS, |
| 136 | /* BSS disconnect status : deauth */ |
| 137 | eHAL_STATUS_BSS_DISCONN_DEAUTH, |
| 138 | /* BSS disconnect status : disassoc */ |
| 139 | eHAL_STATUS_BSS_DISCONN_DISASSOC, |
| 140 | |
Shailender Karmuchi | 07f514b | 2013-06-25 01:14:09 -0700 | [diff] [blame] | 141 | /* Data abort happened in PHY sw */ |
| 142 | eHAL_STATUS_PHY_DATA_ABORT, |
| 143 | |
| 144 | /* Invalid NV field */ |
| 145 | eHAL_STATUS_PHY_INVALID_NV_FIELD, |
| 146 | |
| 147 | /* WLAN boot test failed */ |
| 148 | eHAL_STATUS_WLAN_BOOT_TEST_FAILURE, |
| 149 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 150 | /* Max status value */ |
| 151 | eHAL_STATUS_MAX_VALUE = WLAN_STATUS_MAX_ENUM_SIZE |
| 152 | |
| 153 | } palStatus, eHalStatus; |
| 154 | |
| 155 | /* Helper Macros */ |
| 156 | #define PAL_IS_STATUS_SUCCESS(status) (PAL_STATUS_SUCCESS == (status)) |
| 157 | #define HAL_STATUS_SUCCESS( status ) (eHAL_STATUS_SUCCESS == (status)) |
| 158 | |
| 159 | #endif //__WLAN_STATUS_CODE_H__ |