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