diff options
| author | Joshua Oreman | 2009-08-08 05:17:50 +0200 |
|---|---|---|
| committer | Marty Connor | 2010-01-05 15:11:21 +0100 |
| commit | 1327a787eb5c7e3563b23bf689455fa887f3e3ed (patch) | |
| tree | a8539c43281d02302731152d04251e7afd2ca8ee /src/config | |
| parent | [802.11] Add core support for detecting and using encrypted networks (diff) | |
| download | ipxe-1327a787eb5c7e3563b23bf689455fa887f3e3ed.tar.gz ipxe-1327a787eb5c7e3563b23bf689455fa887f3e3ed.tar.xz ipxe-1327a787eb5c7e3563b23bf689455fa887f3e3ed.zip | |
[iwmgmt] Add wireless management commands and text for common errors
Add commands `iwstat' (to list 802.11-specific status information for
802.11 devices) and `iwlist' (to scan for available networks and print
a list along with security information).
Signed-off-by: Marty Connor <mdc@etherboot.org>
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/config.c | 1 | ||||
| -rw-r--r-- | src/config/config_net80211.c | 33 | ||||
| -rw-r--r-- | src/config/general.h | 7 |
3 files changed, 41 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c index 3c43dfbc5..f487ae975 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -204,6 +204,7 @@ REQUIRE_OBJECT ( config_cmd ); #ifdef IFMGMT_CMD REQUIRE_OBJECT ( ifmgmt_cmd ); #endif +/* IWMGMT_CMD is brought in by net80211.c if requested */ #ifdef ROUTE_CMD REQUIRE_OBJECT ( route_cmd ); #endif diff --git a/src/config/config_net80211.c b/src/config/config_net80211.c new file mode 100644 index 000000000..bcb76a747 --- /dev/null +++ b/src/config/config_net80211.c @@ -0,0 +1,33 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2, or (at + * your option) any later version. + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#include <config/general.h> + +/** @file + * + * 802.11 configuration options + * + */ + +/* + * Drag in 802.11-specific commands + * + */ +#ifdef IWMGMT_CMD +REQUIRE_OBJECT ( iwmgmt_cmd ); +#endif + +/* + * Drag in 802.11 error message tables + * + */ +#ifdef ERRMSG_80211 +REQUIRE_OBJECT ( wireless_errors ); +#endif + diff --git a/src/config/general.h b/src/config/general.h index ee07dfc09..0acc00d3d 100644 --- a/src/config/general.h +++ b/src/config/general.h @@ -99,6 +99,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define NVO_CMD /* Non-volatile option storage commands */ #define CONFIG_CMD /* Option configuration console */ #define IFMGMT_CMD /* Interface management commands */ +#define IWMGMT_CMD /* Wireless interface management commands */ #define ROUTE_CMD /* Routing table management commands */ #define IMAGE_CMD /* Image management commands */ #define DHCP_CMD /* DHCP management commands */ @@ -109,6 +110,12 @@ FILE_LICENCE ( GPL2_OR_LATER ); //#undef PXE_CMD /* PXE commands */ /* + * Error message tables to include + * + */ +#undef ERRMSG_80211 /* All 802.11 error descriptions (~3.3kb) */ + +/* * Obscure configuration options * * You probably don't need to touch these. |
