iPXE
|
Wireless network interface management. More...
Go to the source code of this file.
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... | |
Wireless network interface management.
Definition in file iwmgmt.h.
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().