[contrib] Allow Network Protocol header to display in rom-o-matic
[gpxe.git] / src / hci / wireless_errors.c
blobab95a3c91f82fa911c083b29cdd6c00d54944985
1 /*
2 * Copyright (C) 2009 Joshua Oreman <oremanj@rwcr.net>.
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.
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.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
19 FILE_LICENCE ( GPL2_OR_LATER );
21 #include <errno.h>
22 #include <gpxe/errortab.h>
23 #include <gpxe/net80211_err.h>
25 /* Record errors as though they come from the 802.11 stack */
26 #undef ERRFILE
27 #define ERRFILE ERRFILE_net80211
29 /** All 802.11 errors
31 struct errortab wireless_errors[] __errortab = {
32 __einfo_errortab ( EINFO_EINVAL_PKT_TOO_SHORT ),
33 __einfo_errortab ( EINFO_EINVAL_PKT_VERSION ),
34 __einfo_errortab ( EINFO_EINVAL_PKT_NOT_DATA ),
35 __einfo_errortab ( EINFO_EINVAL_PKT_NOT_FROMDS ),
36 __einfo_errortab ( EINFO_EINVAL_PKT_LLC_HEADER ),
37 __einfo_errortab ( EINFO_EINVAL_CRYPTO_REQUEST ),
38 __einfo_errortab ( EINFO_EINVAL_ACTIVE_SCAN ),
39 __einfo_errortab ( EINFO_ECONNREFUSED_FAILURE ),
40 __einfo_errortab ( EINFO_ECONNREFUSED_CAPAB_UNSUPP ),
41 __einfo_errortab ( EINFO_ECONNREFUSED_REASSOC_INVALID ),
42 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_DENIED ),
43 __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_ALGO_UNSUPP ),
44 __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_SEQ_INVALID ),
45 __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_CHALL_INVALID ),
46 __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_TIMEOUT ),
47 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NO_ROOM ),
48 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_RATE ),
49 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_SHORT_PMBL ),
50 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_PBCC ),
51 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_CHAN_AGILITY ),
52 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_SPECTRUM_MGMT ),
53 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_BAD_POWER ),
54 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_BAD_CHANNELS ),
55 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_SHORT_SLOT ),
56 __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_DSSS_OFDM ),
57 __einfo_errortab ( EINFO_EHOSTUNREACH_QOS_FAILURE ),
58 __einfo_errortab ( EINFO_EHOSTUNREACH_QOS_NO_ROOM ),
59 __einfo_errortab ( EINFO_EHOSTUNREACH_LINK_IS_HORRIBLE ),
60 __einfo_errortab ( EINFO_EHOSTUNREACH_ASSOC_NEED_QOS ),
61 __einfo_errortab ( EINFO_EHOSTUNREACH_REQUEST_DECLINED ),
62 __einfo_errortab ( EINFO_EHOSTUNREACH_REQUEST_INVALID ),
63 __einfo_errortab ( EINFO_EHOSTUNREACH_TS_NOT_CREATED_AGAIN ),
64 __einfo_errortab ( EINFO_EHOSTUNREACH_INVALID_IE ),
65 __einfo_errortab ( EINFO_EHOSTUNREACH_GROUP_CIPHER_INVALID ),
66 __einfo_errortab ( EINFO_EHOSTUNREACH_PAIR_CIPHER_INVALID ),
67 __einfo_errortab ( EINFO_EHOSTUNREACH_AKMP_INVALID ),
68 __einfo_errortab ( EINFO_EHOSTUNREACH_RSN_VERSION_UNSUPP ),
69 __einfo_errortab ( EINFO_EHOSTUNREACH_RSN_CAPAB_INVALID ),
70 __einfo_errortab ( EINFO_EHOSTUNREACH_CIPHER_REJECTED ),
71 __einfo_errortab ( EINFO_EHOSTUNREACH_TS_NOT_CREATED_WAIT ),
72 __einfo_errortab ( EINFO_EHOSTUNREACH_DIRECT_LINK_FORBIDDEN ),
73 __einfo_errortab ( EINFO_EHOSTUNREACH_DEST_NOT_PRESENT ),
74 __einfo_errortab ( EINFO_EHOSTUNREACH_DEST_NOT_QOS ),
75 __einfo_errortab ( EINFO_EHOSTUNREACH_ASSOC_LISTEN_TOO_HIGH ),
76 __einfo_errortab ( EINFO_ECONNRESET_UNSPECIFIED ),
77 __einfo_errortab ( EINFO_ECONNRESET_AUTH_NO_LONGER_VALID ),
78 __einfo_errortab ( EINFO_ECONNRESET_LEAVING ),
79 __einfo_errortab ( EINFO_ECONNRESET_INACTIVITY ),
80 __einfo_errortab ( EINFO_ECONNRESET_OUT_OF_RESOURCES ),
81 __einfo_errortab ( EINFO_ECONNRESET_NEED_AUTH ),
82 __einfo_errortab ( EINFO_ECONNRESET_NEED_ASSOC ),
83 __einfo_errortab ( EINFO_ECONNRESET_LEAVING_TO_ROAM ),
84 __einfo_errortab ( EINFO_ECONNRESET_REASSOC_INVALID ),
85 __einfo_errortab ( EINFO_ECONNRESET_BAD_POWER ),
86 __einfo_errortab ( EINFO_ECONNRESET_BAD_CHANNELS ),
87 __einfo_errortab ( EINFO_ECONNRESET_INVALID_IE ),
88 __einfo_errortab ( EINFO_ECONNRESET_MIC_FAILURE ),
89 __einfo_errortab ( EINFO_ECONNRESET_4WAY_TIMEOUT ),
90 __einfo_errortab ( EINFO_ECONNRESET_GROUPKEY_TIMEOUT ),
91 __einfo_errortab ( EINFO_ECONNRESET_4WAY_INVALID ),
92 __einfo_errortab ( EINFO_ECONNRESET_GROUP_CIPHER_INVALID ),
93 __einfo_errortab ( EINFO_ECONNRESET_PAIR_CIPHER_INVALID ),
94 __einfo_errortab ( EINFO_ECONNRESET_AKMP_INVALID ),
95 __einfo_errortab ( EINFO_ECONNRESET_RSN_VERSION_INVALID ),
96 __einfo_errortab ( EINFO_ECONNRESET_RSN_CAPAB_INVALID ),
97 __einfo_errortab ( EINFO_ECONNRESET_8021X_FAILURE ),
98 __einfo_errortab ( EINFO_ECONNRESET_CIPHER_REJECTED ),
99 __einfo_errortab ( EINFO_ENETRESET_QOS_UNSPECIFIED ),
100 __einfo_errortab ( EINFO_ENETRESET_QOS_OUT_OF_RESOURCES ),
101 __einfo_errortab ( EINFO_ENETRESET_LINK_IS_HORRIBLE ),
102 __einfo_errortab ( EINFO_ENETRESET_INVALID_TXOP ),
103 __einfo_errortab ( EINFO_ENETRESET_REQUESTED_LEAVING ),
104 __einfo_errortab ( EINFO_ENETRESET_REQUESTED_NO_USE ),
105 __einfo_errortab ( EINFO_ENETRESET_REQUESTED_NEED_SETUP ),
106 __einfo_errortab ( EINFO_ENETRESET_REQUESTED_TIMEOUT ),
107 __einfo_errortab ( EINFO_ENETRESET_CIPHER_UNSUPPORTED ),