5 * This file contains definitions that may be used across both
6 * Host and Target software. Nothing here is module-dependent
7 * or platform-dependent.
11 * Generic error codes that can be used by hw, sta, ap, sim, dk
12 * and any other environments. Since these are enums, feel free to
13 * add any more codes that you need.
17 A_ERROR = -1, /* Generic error return */
18 A_OK = 0, /* success */
19 /* Following values start at 1 */
20 A_DEVICE_NOT_FOUND, /* not able to find PCI device */
21 A_NO_MEMORY, /* not able to allocate memory, not available */
22 A_MEMORY_NOT_AVAIL, /* memory region is not free for mapping */
23 A_NO_FREE_DESC, /* no free descriptors available */
24 A_BAD_ADDRESS, /* address does not match descriptor */
25 A_WIN_DRIVER_ERROR, /* used in NT_HW version, if problem at init */
26 A_REGS_NOT_MAPPED, /* registers not correctly mapped */
27 A_EPERM, /* Not superuser */
28 A_EACCES, /* Access denied */
29 A_ENOENT, /* No such entry, search failed, etc. */
30 A_EEXIST, /* The object already exists (can't create) */
31 A_EFAULT, /* Bad address fault */
32 A_EBUSY, /* Object is busy */
33 A_EINVAL, /* Invalid parameter */
34 A_EMSGSIZE, /* Inappropriate message buffer length */
35 A_ECANCELED, /* Operation canceled */
36 A_ENOTSUP, /* Operation not supported */
37 A_ECOMM, /* Communication error on send */
38 A_EPROTO, /* Protocol error */
39 A_ENODEV, /* No such device */
40 A_EDEVNOTUP, /* device is not UP */
41 A_NO_RESOURCE, /* No resources for requested operation */
42 A_HARDWARE, /* Hardware failure */
43 A_PENDING, /* Asynchronous routine; will send up results la
44 ter (typically in callback) */
45 A_EBADCHANNEL, /* The channel cannot be used */
46 A_DECRYPT_ERROR, /* Decryption error */
47 A_PHY_ERROR, /* RX PHY error */
48 A_CONSUMED /* Object was consumed */
51 #define A_SUCCESS(x) (x == A_OK)
52 #define A_FAILED(x) (!A_SUCCESS(x))
63 #define NULL ((void *)0)
67 * The following definition is WLAN specific definition
70 MODE_11A = 0, /* 11a Mode */
71 MODE_11G = 1, /* 11g + 11b Mode */
72 MODE_11B = 2, /* 11b Mode */
73 MODE_11GONLY = 3, /* 11g only Mode */
79 WLAN_11A_CAPABILITY = 1,
80 WLAN_11G_CAPABILITY = 2,
81 WLAN_11AG_CAPABILITY = 3,
84 #endif /* __ATHDEFS_H__ */