iPXE
|
Wireless network interface management. More...
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <ipxe/net80211.h>
#include <ipxe/ethernet.h>
#include <usr/ifmgmt.h>
#include <usr/iwmgmt.h>
Go to the source code of this file.
Macros | |
#define | NR_CRYPTO_TYPES ( sizeof ( crypto_types ) / sizeof ( crypto_types[0] ) ) |
Number of 802.11 cryptography types defined. More... | |
#define | NR_AUTH_TYPES ( sizeof ( auth_types ) / sizeof ( auth_types[0] ) ) |
Number of 802.11 authentication types defined. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
void | iwstat (struct net80211_device *dev) |
Print status of 802.11 device. More... | |
int | iwlist (struct net80211_device *dev) |
Scan for wireless networks using 802.11 device. More... | |
Variables | |
static const char * | crypto_types [] |
Identifiers for 802.11 cryptography types, indexed by type number. More... | |
static const char * | auth_types [] |
Identifiers for 802.11 authentication types, indexed by type number. More... | |
Wireless network interface management.
Definition in file iwmgmt.c.
#define NR_CRYPTO_TYPES ( sizeof ( crypto_types ) / sizeof ( crypto_types[0] ) ) |
#define NR_AUTH_TYPES ( sizeof ( auth_types ) / sizeof ( auth_types[0] ) ) |
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
void iwstat | ( | struct net80211_device * | dev | ) |
Print status of 802.11 device.
dev | 802.11 device |
Definition at line 41 of file iwmgmt.c.
References net80211_device::associating, net80211_device::channel, net80211_channel::channel_nr, net80211_device::channels, net80211_device::essid, net80211_wlan::essid, net80211_device::hw, ifstat(), net80211_device::last_signal, NET80211_ASSOCIATED, NET80211_WORKING, net80211_device::netdev, net80211_device::nr_channels, net80211_device::nr_rates, printf(), net80211_device::rate, net80211_device::rates, net80211_device::rx_beacon_interval, net80211_hw_info::signal_max, net80211_hw_info::signal_type, net80211_device::state, and net80211_device::tx_beacon_interval.
Referenced by iwstat_payload().
int iwlist | ( | struct net80211_device * | dev | ) |
Scan for wireless networks using 802.11 device.
dev | 802.11 device |
active | Whether to use active scanning |
The list of networks found will be printed in tabular format.
This function is safe to call at all times, whether the 802.11 device is open or not, but if called while the auto-association task is running it will return an error indication.
Definition at line 120 of file iwmgmt.c.
References auth_types, net80211_hw_info::bands, net80211_wlan::bssid, net80211_device::channel, net80211_wlan::channel, net80211_channel::channel_nr, net80211_device::channels, net80211_wlan::crypto, crypto_types, ctx, EINVAL, ENOMEM, net80211_wlan::essid, eth_ntoa(), net80211_wlan::handshaking, net80211_device::hw, net80211_wlan::list, list_empty, list_for_each_entry, net_device::name, net80211_change_channel(), net80211_free_wlanlist(), NET80211_NO_ASSOC, net80211_prepare_probe(), net80211_probe_finish_all(), net80211_probe_start(), net80211_probe_step(), NET80211_WORKING, net80211_device::netdev, netdev_close(), netdev_is_open(), netdev_open(), NR_AUTH_TYPES, NR_CRYPTO_TYPES, printf(), rc, net80211_wlan::signal, snprintf(), net80211_device::state, step(), strerror(), and strlen().
Referenced by iwlist_payload().
|
static |
Identifiers for 802.11 cryptography types, indexed by type number.
Definition at line 86 of file iwmgmt.c.
Referenced by iwlist().
|
static |
Identifiers for 802.11 authentication types, indexed by type number.
Definition at line 98 of file iwmgmt.c.
Referenced by iwlist().