iPXE
wireless_errors.c
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2009 Joshua Oreman <oremanj@rwcr.net>.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License as
00006  * published by the Free Software Foundation; either version 2 of the
00007  * License, or any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301, USA.
00018  */
00019 
00020 FILE_LICENCE ( GPL2_OR_LATER );
00021 
00022 #include <errno.h>
00023 #include <ipxe/errortab.h>
00024 #include <ipxe/net80211_err.h>
00025 
00026 /* Record errors as though they come from the 802.11 stack */
00027 #undef ERRFILE
00028 #define ERRFILE ERRFILE_net80211
00029 
00030 /** All 802.11 errors
00031  */
00032 struct errortab wireless_errors[] __errortab = {
00033         __einfo_errortab ( EINFO_EINVAL_PKT_TOO_SHORT ),
00034         __einfo_errortab ( EINFO_EINVAL_PKT_VERSION ),
00035         __einfo_errortab ( EINFO_EINVAL_PKT_NOT_DATA ),
00036         __einfo_errortab ( EINFO_EINVAL_PKT_NOT_FROMDS ),
00037         __einfo_errortab ( EINFO_EINVAL_PKT_LLC_HEADER ),
00038         __einfo_errortab ( EINFO_EINVAL_CRYPTO_REQUEST ),
00039         __einfo_errortab ( EINFO_EINVAL_ACTIVE_SCAN ),
00040         __einfo_errortab ( EINFO_ECONNREFUSED_FAILURE ),
00041         __einfo_errortab ( EINFO_ECONNREFUSED_CAPAB_UNSUPP ),
00042         __einfo_errortab ( EINFO_ECONNREFUSED_REASSOC_INVALID ),
00043         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_DENIED ),
00044         __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_ALGO_UNSUPP ),
00045         __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_SEQ_INVALID ),
00046         __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_CHALL_INVALID ),
00047         __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_TIMEOUT ),
00048         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NO_ROOM ),
00049         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_RATE ),
00050         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_SHORT_PMBL ),
00051         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_PBCC ),
00052         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_CHAN_AGILITY ),
00053         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_SPECTRUM_MGMT ),
00054         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_BAD_POWER ),
00055         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_BAD_CHANNELS ),
00056         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_SHORT_SLOT ),
00057         __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_NEED_DSSS_OFDM ),
00058         __einfo_errortab ( EINFO_EHOSTUNREACH_QOS_FAILURE ),
00059         __einfo_errortab ( EINFO_EHOSTUNREACH_QOS_NO_ROOM ),
00060         __einfo_errortab ( EINFO_EHOSTUNREACH_LINK_IS_HORRIBLE ),
00061         __einfo_errortab ( EINFO_EHOSTUNREACH_ASSOC_NEED_QOS ),
00062         __einfo_errortab ( EINFO_EHOSTUNREACH_REQUEST_DECLINED ),
00063         __einfo_errortab ( EINFO_EHOSTUNREACH_REQUEST_INVALID ),
00064         __einfo_errortab ( EINFO_EHOSTUNREACH_TS_NOT_CREATED_AGAIN ),
00065         __einfo_errortab ( EINFO_EHOSTUNREACH_INVALID_IE ),
00066         __einfo_errortab ( EINFO_EHOSTUNREACH_GROUP_CIPHER_INVALID ),
00067         __einfo_errortab ( EINFO_EHOSTUNREACH_PAIR_CIPHER_INVALID ),
00068         __einfo_errortab ( EINFO_EHOSTUNREACH_AKMP_INVALID ),
00069         __einfo_errortab ( EINFO_EHOSTUNREACH_RSN_VERSION_UNSUPP ),
00070         __einfo_errortab ( EINFO_EHOSTUNREACH_RSN_CAPAB_INVALID ),
00071         __einfo_errortab ( EINFO_EHOSTUNREACH_CIPHER_REJECTED ),
00072         __einfo_errortab ( EINFO_EHOSTUNREACH_TS_NOT_CREATED_WAIT ),
00073         __einfo_errortab ( EINFO_EHOSTUNREACH_DIRECT_LINK_FORBIDDEN ),
00074         __einfo_errortab ( EINFO_EHOSTUNREACH_DEST_NOT_PRESENT ),
00075         __einfo_errortab ( EINFO_EHOSTUNREACH_DEST_NOT_QOS ),
00076         __einfo_errortab ( EINFO_EHOSTUNREACH_ASSOC_LISTEN_TOO_HIGH ),
00077         __einfo_errortab ( EINFO_ECONNRESET_UNSPECIFIED ),
00078         __einfo_errortab ( EINFO_ECONNRESET_AUTH_NO_LONGER_VALID ),
00079         __einfo_errortab ( EINFO_ECONNRESET_LEAVING ),
00080         __einfo_errortab ( EINFO_ECONNRESET_INACTIVITY ),
00081         __einfo_errortab ( EINFO_ECONNRESET_OUT_OF_RESOURCES ),
00082         __einfo_errortab ( EINFO_ECONNRESET_NEED_AUTH ),
00083         __einfo_errortab ( EINFO_ECONNRESET_NEED_ASSOC ),
00084         __einfo_errortab ( EINFO_ECONNRESET_LEAVING_TO_ROAM ),
00085         __einfo_errortab ( EINFO_ECONNRESET_REASSOC_INVALID ),
00086         __einfo_errortab ( EINFO_ECONNRESET_BAD_POWER ),
00087         __einfo_errortab ( EINFO_ECONNRESET_BAD_CHANNELS ),
00088         __einfo_errortab ( EINFO_ECONNRESET_INVALID_IE ),
00089         __einfo_errortab ( EINFO_ECONNRESET_MIC_FAILURE ),
00090         __einfo_errortab ( EINFO_ECONNRESET_4WAY_TIMEOUT ),
00091         __einfo_errortab ( EINFO_ECONNRESET_GROUPKEY_TIMEOUT ),
00092         __einfo_errortab ( EINFO_ECONNRESET_4WAY_INVALID ),
00093         __einfo_errortab ( EINFO_ECONNRESET_GROUP_CIPHER_INVALID ),
00094         __einfo_errortab ( EINFO_ECONNRESET_PAIR_CIPHER_INVALID ),
00095         __einfo_errortab ( EINFO_ECONNRESET_AKMP_INVALID ),
00096         __einfo_errortab ( EINFO_ECONNRESET_RSN_VERSION_INVALID ),
00097         __einfo_errortab ( EINFO_ECONNRESET_RSN_CAPAB_INVALID ),
00098         __einfo_errortab ( EINFO_ECONNRESET_8021X_FAILURE ),
00099         __einfo_errortab ( EINFO_ECONNRESET_CIPHER_REJECTED ),
00100         __einfo_errortab ( EINFO_ENETRESET_QOS_UNSPECIFIED ),
00101         __einfo_errortab ( EINFO_ENETRESET_QOS_OUT_OF_RESOURCES ),
00102         __einfo_errortab ( EINFO_ENETRESET_LINK_IS_HORRIBLE ),
00103         __einfo_errortab ( EINFO_ENETRESET_INVALID_TXOP ),
00104         __einfo_errortab ( EINFO_ENETRESET_REQUESTED_LEAVING ),
00105         __einfo_errortab ( EINFO_ENETRESET_REQUESTED_NO_USE ),
00106         __einfo_errortab ( EINFO_ENETRESET_REQUESTED_NEED_SETUP ),
00107         __einfo_errortab ( EINFO_ENETRESET_REQUESTED_TIMEOUT ),
00108         __einfo_errortab ( EINFO_ENETRESET_CIPHER_UNSUPPORTED ),
00109 };