iPXE
|
Functions | |
static int | net80211_netdev_open (struct net_device *netdev) |
Open 802.11 device and start association. More... | |
static void | net80211_netdev_close (struct net_device *netdev) |
Close 802.11 device. More... | |
static int | net80211_netdev_transmit (struct net_device *netdev, struct io_buffer *iobuf) |
Transmit packet on 802.11 device. More... | |
static void | net80211_netdev_poll (struct net_device *netdev) |
Poll 802.11 device for received packets and completed transmissions. More... | |
static void | net80211_netdev_irq (struct net_device *netdev, int enable) |
Enable or disable interrupts for 802.11 device. More... | |
|
static |
Open 802.11 device and start association.
netdev | Wrapping network device |
rc | Return status code |
This sets up a default conservative set of channels for probing, and starts the auto-association task unless the NET80211_NO_ASSOC
flag is set in the wrapped 802.11 device's state
field.
Definition at line 256 of file net80211.c.
References EFAULT, net80211_autoassociate(), NET80211_NO_ASSOC, net80211_null_ops, netdev, net80211_device::op, net80211_device_operations::open, net_device::priv, rc, and net80211_device::state.
|
static |
Close 802.11 device.
netdev | Wrapping network device. |
If the association task is running, this will stop it.
Definition at line 283 of file net80211.c.
References net80211_device_operations::close, net80211_device::crypto, free, net80211_device::handshaker, IEEE80211_REASON_LEAVING, NET80211_ASSOCIATED, net80211_send_disassoc(), NET80211_WORKING, netdev, netdev_link_down(), NULL, net80211_device::op, net_device::priv, net80211_device::proc_assoc, process_del(), net80211_handshaker::started, net80211_device::state, and net80211_handshaker::stop.
|
static |
Transmit packet on 802.11 device.
netdev | Wrapping network device |
iobuf | I/O buffer |
rc | Return status code |
If encryption is enabled for the currently associated network, the packet will be encrypted prior to transmission.
Definition at line 320 of file net80211.c.
References net80211_device::crypto, io_buffer::data, net80211_crypto::encrypt, ENOMEM, ENOSYS, hdr, IEEE80211_FC_PROTECTED, IEEE80211_FC_TYPE, IEEE80211_TYPE_DATA, netdev, netdev_tx(), netdev_tx_complete(), net80211_device::op, net_device::priv, rc, and net80211_device_operations::transmit.
|
static |
Poll 802.11 device for received packets and completed transmissions.
netdev | Wrapping network device |
Definition at line 356 of file net80211.c.
References netdev, net80211_device::op, net80211_device_operations::poll, and net_device::priv.
|
static |
Enable or disable interrupts for 802.11 device.
netdev | Wrapping network device |
enable | Whether to enable interrupts |
Definition at line 370 of file net80211.c.
References net80211_device_operations::irq, netdev, net80211_device::op, and net_device::priv.