[efi] Do not raise TPL within EFI_DRIVER_BINDING_PROTOCOL.Supported()
[ipxe.git] / src / hci / wireless_errors.c
1 /*
2 * Copyright (C) 2009 Joshua Oreman <oremanj@rwcr.net>.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301, USA.
18 */
19
20 FILE_LICENCE ( GPL2_OR_LATER );
21
22 #include <errno.h>
23 #include <ipxe/errortab.h>
24 #include <ipxe/net80211_err.h>
25
26 /* Record errors as though they come from the 802.11 stack */
27 #undef ERRFILE
28 #define ERRFILE ERRFILE_net80211
29
30 /** All 802.11 errors
31 */
32 struct errortab wireless_errors[] __errortab = {
33 __einfo_errortab ( EINFO_EINVAL_PKT_TOO_SHORT ),
34 __einfo_errortab ( EINFO_EINVAL_PKT_VERSION ),
35 __einfo_errortab ( EINFO_EINVAL_PKT_NOT_DATA ),
36 __einfo_errortab ( EINFO_EINVAL_PKT_NOT_FROMDS ),
37 __einfo_errortab ( EINFO_EINVAL_PKT_LLC_HEADER ),
38 __einfo_errortab ( EINFO_EINVAL_CRYPTO_REQUEST ),
39 __einfo_errortab ( EINFO_EINVAL_ACTIVE_SCAN ),
40 __einfo_errortab ( EINFO_ECONNREFUSED_FAILURE ),
41 __einfo_errortab ( EINFO_ECONNREFUSED_CAPAB_UNSUPP ),
42 __einfo_errortab ( EINFO_ECONNREFUSED_REASSOC_INVALID ),
43 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_DENIED ),
44 __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_ALGO_UNSUPP ),
45 __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_SEQ_INVALID ),
46 __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_CHALL_INVALID ),
47 __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_TIMEOUT ),
48 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NO_ROOM ),
49 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_RATE ),
50 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_SHORT_PMBL ),
51 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_PBCC ),
52 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_CHAN_AGILITY ),
53 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_SPECTRUM_MGMT ),
54 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_BAD_POWER ),
55 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_BAD_CHANNELS ),
56 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_SHORT_SLOT ),
57 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_DSSS_OFDM ),
58 __einfo_errortab ( EINFO_EHOSTUNREACH_QOS_FAILURE ),
59 __einfo_errortab ( EINFO_EHOSTUNREACH_QOS_NO_ROOM ),
60 __einfo_errortab ( EINFO_EHOSTUNREACH_LINK_IS_HORRIBLE ),
61 __einfo_errortab ( EINFO_EHOSTUNREACH_ASSOC_NEED_QOS ),
62 __einfo_errortab ( EINFO_EHOSTUNREACH_REQUEST_DECLINED ),
63 __einfo_errortab ( EINFO_EHOSTUNREACH_REQUEST_INVALID ),
64 __einfo_errortab ( EINFO_EHOSTUNREACH_TS_NOT_CREATED_AGAIN ),
65 __einfo_errortab ( EINFO_EHOSTUNREACH_INVALID_IE ),
66 __einfo_errortab ( EINFO_EHOSTUNREACH_GROUP_CIPHER_INVALID ),
67 __einfo_errortab ( EINFO_EHOSTUNREACH_PAIR_CIPHER_INVALID ),
68 __einfo_errortab ( EINFO_EHOSTUNREACH_AKMP_INVALID ),
69 __einfo_errortab ( EINFO_EHOSTUNREACH_RSN_VERSION_UNSUPP ),
70 __einfo_errortab ( EINFO_EHOSTUNREACH_RSN_CAPAB_INVALID ),
71 __einfo_errortab ( EINFO_EHOSTUNREACH_CIPHER_REJECTED ),
72 __einfo_errortab ( EINFO_EHOSTUNREACH_TS_NOT_CREATED_WAIT ),
73 __einfo_errortab ( EINFO_EHOSTUNREACH_DIRECT_LINK_FORBIDDEN ),
74 __einfo_errortab ( EINFO_EHOSTUNREACH_DEST_NOT_PRESENT ),
75 __einfo_errortab ( EINFO_EHOSTUNREACH_DEST_NOT_QOS ),
76 __einfo_errortab ( EINFO_EHOSTUNREACH_ASSOC_LISTEN_TOO_HIGH ),
77 __einfo_errortab ( EINFO_ECONNRESET_UNSPECIFIED ),
78 __einfo_errortab ( EINFO_ECONNRESET_AUTH_NO_LONGER_VALID ),
79 __einfo_errortab ( EINFO_ECONNRESET_LEAVING ),
80 __einfo_errortab ( EINFO_ECONNRESET_INACTIVITY ),
81 __einfo_errortab ( EINFO_ECONNRESET_OUT_OF_RESOURCES ),
82 __einfo_errortab ( EINFO_ECONNRESET_NEED_AUTH ),
83 __einfo_errortab ( EINFO_ECONNRESET_NEED_ASSOC ),
84 __einfo_errortab ( EINFO_ECONNRESET_LEAVING_TO_ROAM ),
85 __einfo_errortab ( EINFO_ECONNRESET_REASSOC_INVALID ),
86 __einfo_errortab ( EINFO_ECONNRESET_BAD_POWER ),
87 __einfo_errortab ( EINFO_ECONNRESET_BAD_CHANNELS ),
88 __einfo_errortab ( EINFO_ECONNRESET_INVALID_IE ),
89 __einfo_errortab ( EINFO_ECONNRESET_MIC_FAILURE ),
90 __einfo_errortab ( EINFO_ECONNRESET_4WAY_TIMEOUT ),
91 __einfo_errortab ( EINFO_ECONNRESET_GROUPKEY_TIMEOUT ),
92 __einfo_errortab ( EINFO_ECONNRESET_4WAY_INVALID ),
93 __einfo_errortab ( EINFO_ECONNRESET_GROUP_CIPHER_INVALID ),
94 __einfo_errortab ( EINFO_ECONNRESET_PAIR_CIPHER_INVALID ),
95 __einfo_errortab ( EINFO_ECONNRESET_AKMP_INVALID ),
96 __einfo_errortab ( EINFO_ECONNRESET_RSN_VERSION_INVALID ),
97 __einfo_errortab ( EINFO_ECONNRESET_RSN_CAPAB_INVALID ),
98 __einfo_errortab ( EINFO_ECONNRESET_8021X_FAILURE ),
99 __einfo_errortab ( EINFO_ECONNRESET_CIPHER_REJECTED ),
100 __einfo_errortab ( EINFO_ENETRESET_QOS_UNSPECIFIED ),
101 __einfo_errortab ( EINFO_ENETRESET_QOS_OUT_OF_RESOURCES ),
102 __einfo_errortab ( EINFO_ENETRESET_LINK_IS_HORRIBLE ),
103 __einfo_errortab ( EINFO_ENETRESET_INVALID_TXOP ),
104 __einfo_errortab ( EINFO_ENETRESET_REQUESTED_LEAVING ),
105 __einfo_errortab ( EINFO_ENETRESET_REQUESTED_NO_USE ),
106 __einfo_errortab ( EINFO_ENETRESET_REQUESTED_NEED_SETUP ),
107 __einfo_errortab ( EINFO_ENETRESET_REQUESTED_TIMEOUT ),
108 __einfo_errortab ( EINFO_ENETRESET_CIPHER_UNSUPPORTED ),
109 };