summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMichael Brown2010-05-30 16:29:05 +0200
committerMichael Brown2010-05-31 04:11:57 +0200
commit6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac (patch)
treeb04dd064c978bf0525649e9d1b936a9724deadaf /src/usr
parent[pxe] Remove obsolete pxe_errortab.c (diff)
downloadipxe-6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac.tar.gz
ipxe-6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac.tar.xz
ipxe-6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac.zip
[libc] Enable automated extraction of error usage reports
Add preprocessor magic to the error definitions to enable every error usage to be tracked. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/iwmgmt.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/usr/iwmgmt.c b/src/usr/iwmgmt.c
index 27e779504..db0d1b449 100644
--- a/src/usr/iwmgmt.c
+++ b/src/usr/iwmgmt.c
@@ -26,7 +26,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/ethernet.h>
#include <usr/ifmgmt.h>
#include <usr/iwmgmt.h>
-#include <ipxe/errortab.h>
/** @file
*
@@ -225,20 +224,3 @@ int iwlist ( struct net80211_device *dev ) {
dev->netdev->name, strerror ( rc ) );
return rc;
}
-
-
-/* Record error codes as though they come from the 802.11 stack */
-#undef ERRFILE
-#define ERRFILE ERRFILE_net80211
-
-/** Common 802.11 errors */
-struct errortab common_wireless_errors[] __errortab = {
- { EINVAL | EUNIQ_06, "Packet decryption error" },
- { ECONNRESET | EUNIQ_01, "Unspecified reason" },
- { ECONNRESET | EUNIQ_04, "Disassociated due to inactivity" },
- { ECONNRESET | EUNIQ_0F, "4-Way Handshake timeout" },
- { ECONNRESET | EUNIQ_17, "IEEE 802.1X authentication failed" },
- { ECONNREFUSED | EUNIQ_01, "Unspecified failure" },
- { ECONNREFUSED | EUNIQ_0C, "Association denied" },
- { ECONNREFUSED | EUNIQ_0D, "Authentication method not supported" },
-};