From 6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 30 May 2010 15:29:05 +0100 Subject: [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 --- src/usr/iwmgmt.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/usr') 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 #include #include -#include /** @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" }, -}; -- cgit v1.2.3-55-g7522