blob: b32e3d001a0f24e02c9bd878da431cba1e7f94c5 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Shailender Karmuchi07f514b2013-06-25 01:14:09 -07002 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20*/
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080021/*
Shailender Karmuchi07f514b2013-06-25 01:14:09 -070022* Copyright (c) 2012 Qualcomm Atheros, Inc.
23* All Rights Reserved.
24* Qualcomm Atheros Confidential and Proprietary.
25*/
Jeff Johnson295189b2012-06-20 16:38:30 -070026
27/*===========================================================================
28 *
29 * @file: wlan_status_code.h
30 *
31 * @brief: Common header file containing all the status codes
32 * All status codes have been consolidated into one enum
33 *
34 * @author: Kumar Anand
Shailender Karmuchi07f514b2013-06-25 01:14:09 -070035 * Copyright (C) 2010, Qualcomm Technologies, Inc.
Jeff Johnson295189b2012-06-20 16:38:30 -070036 * All rights reserved.
37 *
38 *=========================================================================*/
39
40#ifndef __WLAN_STATUS_CODE_H__
41#define __WLAN_STATUS_CODE_H__
42
43/*-------------------------------------------------------------------------
44 Include Files
45-------------------------------------------------------------------------*/
46
47/*----------------------------------------------------------------------------
48 * Preprocessor Definitions and Constants
49 * -------------------------------------------------------------------------*/
50
51/* This is to force compiler to use the maximum of an int ( 4 bytes ) */
52#define WLAN_STATUS_MAX_ENUM_SIZE 0x7FFFFFFF
53
54/*----------------------------------------------------------------------------
55 * Type Declarations
56 * -------------------------------------------------------------------------*/
57
58typedef enum
59{
60 /* PAL Request succeeded!*/
61 PAL_STATUS_SUCCESS = 0,
62
63 /* HAL Request succeeded!*/
64 eHAL_STATUS_SUCCESS = 0,
65
66 /* Request failed because there of an invalid request. This is
67 typically the result of invalid parameters on the request*/
68 PAL_STATUS_INVAL,
69
70 /* Request refused because a request is already in place and
71 another cannot be handled currently */
72 PAL_STATUS_ALREADY,
73
74 /* Request failed because of an empty condition */
75 PAL_STATUS_EMPTY,
76
77 /* Request failed for some unknown reason. */
78 PAL_STATUS_FAILURE,
79
80 /* HAL general failure */
81 eHAL_STATUS_FAILURE,
82
83 /* Invalid Param*/
84 eHAL_STATUS_INVALID_PARAMETER,
85
86 /* Invalid Station Index*/
87 eHAL_STATUS_INVALID_STAIDX,
88
89 /* DPU descriptor table full*/
90 eHAL_STATUS_DPU_DESCRIPTOR_TABLE_FULL,
91
92 /* No interrupts */
93 eHAL_STATUS_NO_INTERRUPTS,
94
95 /* Interrupt present */
96 eHAL_STATUS_INTERRUPT_PRESENT,
97
98 /* Stable Table is full */
99 eHAL_STATUS_STA_TABLE_FULL,
100
101 /* Duplicate Station found */
102 eHAL_STATUS_DUPLICATE_STA,
103
104 /* BSSID is invalid */
105 eHAL_STATUS_BSSID_INVALID,
106
107 /* STA is invalid */
108 eHAL_STATUS_STA_INVALID,
109
110 /* BSSID is is duplicate */
111 eHAL_STATUS_DUPLICATE_BSSID,
112
113 /* BSS Idx is invalid */
114 eHAL_STATUS_INVALID_BSSIDX,
115
116 /* BSSID Table is full */
117 eHAL_STATUS_BSSID_TABLE_FULL,
118
119 /* Invalid DPU signature*/
120 eHAL_STATUS_INVALID_SIGNATURE,
121
122 /* Invalid key Id */
123 eHAL_STATUS_INVALID_KEYID,
124
125 /* Already on requested channel */
126 eHAL_STATUS_SET_CHAN_ALREADY_ON_REQUESTED_CHAN,
127
128 /* UMA descriptor table is full */
129 eHAL_STATUS_UMA_DESCRIPTOR_TABLE_FULL,
130
131 /* MIC Key table is full */
132 eHAL_STATUS_DPU_MICKEY_TABLE_FULL,
133
134 /* A-MPDU/BA related Error codes */
135 eHAL_STATUS_BA_RX_BUFFERS_FULL,
136 eHAL_STATUS_BA_RX_MAX_SESSIONS_REACHED,
137 eHAL_STATUS_BA_RX_INVALID_SESSION_ID,
138
139 eHAL_STATUS_TIMER_START_FAILED,
140 eHAL_STATUS_TIMER_STOP_FAILED,
141 eHAL_STATUS_FAILED_ALLOC,
142
143 /* Scan failure codes */
144 eHAL_STATUS_NOTIFY_BSS_FAIL,
145
146 /* Self STA not deleted as reference count is not zero */
147 eHAL_STATUS_DEL_STA_SELF_IGNORED_REF_COUNT_NOT_ZERO,
148
149 /* Self STA not added as entry already exists*/
150 eHAL_STATUS_ADD_STA_SELF_IGNORED_REF_COUNT_NOT_ZERO,
151
152 /* Message from SLM has failure status */
153 eHAL_STATUS_FW_SEND_MSG_FAILED,
154
155 /* BSS disconnect status : beacon miss */
156 eHAL_STATUS_BSS_DISCONN_BEACON_MISS,
157 /* BSS disconnect status : deauth */
158 eHAL_STATUS_BSS_DISCONN_DEAUTH,
159 /* BSS disconnect status : disassoc */
160 eHAL_STATUS_BSS_DISCONN_DISASSOC,
161
Shailender Karmuchi07f514b2013-06-25 01:14:09 -0700162 /* Data abort happened in PHY sw */
163 eHAL_STATUS_PHY_DATA_ABORT,
164
165 /* Invalid NV field */
166 eHAL_STATUS_PHY_INVALID_NV_FIELD,
167
168 /* WLAN boot test failed */
169 eHAL_STATUS_WLAN_BOOT_TEST_FAILURE,
170
Jeff Johnson295189b2012-06-20 16:38:30 -0700171 /* Max status value */
172 eHAL_STATUS_MAX_VALUE = WLAN_STATUS_MAX_ENUM_SIZE
173
174} palStatus, eHalStatus;
175
176/* Helper Macros */
177#define PAL_IS_STATUS_SUCCESS(status) (PAL_STATUS_SUCCESS == (status))
178#define HAL_STATUS_SUCCESS( status ) (eHAL_STATUS_SUCCESS == (status))
179
180#endif //__WLAN_STATUS_CODE_H__