Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | hwsim_tx_rate |
Macros | |
#define | HWSIM_CMD_MAX (_HWSIM_CMD_MAX - 1) |
#define | HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1) |
Enumerations | |
enum | hwsim_tx_control_flags { HWSIM_TX_CTL_REQ_TX_STATUS = BIT(0), HWSIM_TX_CTL_NO_ACK = BIT(1), HWSIM_TX_STAT_ACK = BIT(2) } |
enum | { HWSIM_CMD_UNSPEC, HWSIM_CMD_REGISTER, HWSIM_CMD_FRAME, HWSIM_CMD_TX_INFO_FRAME, __HWSIM_CMD_MAX } |
enum | { HWSIM_ATTR_UNSPEC, HWSIM_ATTR_ADDR_RECEIVER, HWSIM_ATTR_ADDR_TRANSMITTER, HWSIM_ATTR_FRAME, HWSIM_ATTR_FLAGS, HWSIM_ATTR_RX_RATE, HWSIM_ATTR_SIGNAL, HWSIM_ATTR_TX_INFO, HWSIM_ATTR_COOKIE, __HWSIM_ATTR_MAX } |
Variables | |
struct hwsim_tx_rate | __packed |
#define HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1) |
Definition at line 113 of file mac80211_hwsim.h.
#define HWSIM_CMD_MAX (_HWSIM_CMD_MAX - 1) |
Definition at line 77 of file mac80211_hwsim.h.
anonymous enum |
DOC: Frame transmission/registration support
Frame transmission and registration support exists to allow userspace entities such as wmediumd to receive and process all broadcasted frames from a mac80211_hwsim radio device.
This allow user space applications to decide if the frame should be dropped or not and implement a wireless medium simulator at user space.
Registration is done by sending a register message to the driver and will be automatically unregistered if the user application doesn't responds to sent frames. Once registered the user application has to take responsibility of broadcasting the frames to all listening mac80211_hwsim radio interfaces.
For more technical details, see the corresponding command descriptions below. enum hwsim_commands - supported hwsim commands
: unspecified command to catch errors
: request to register and received all broadcasted frames by any mac80211_hwsim radio device. : send/receive a broadcasted frame from/to kernel/user space, uses: HWSIM_ATTR_ADDR_TRANSMITTER, HWSIM_ATTR_ADDR_RECEIVER, HWSIM_ATTR_FRAME, HWSIM_ATTR_FLAGS, HWSIM_ATTR_RX_RATE, HWSIM_ATTR_SIGNAL, HWSIM_ATTR_COOKIE : Transmission info report from user space to kernel, uses: HWSIM_ATTR_ADDR_TRANSMITTER, HWSIM_ATTR_FLAGS, HWSIM_ATTR_TX_INFO, HWSIM_ATTR_SIGNAL, HWSIM_ATTR_COOKIE : enum limit
HWSIM_CMD_UNSPEC | |
HWSIM_CMD_REGISTER | |
HWSIM_CMD_FRAME | |
HWSIM_CMD_TX_INFO_FRAME | |
__HWSIM_CMD_MAX |
Definition at line 70 of file mac80211_hwsim.h.
anonymous enum |
enum hwsim_attrs - hwsim netlink attributes
: unspecified attribute to catch errors
: MAC address of the radio device that the frame is broadcasted to : MAC address of the radio device that the frame was broadcasted from : Data array : mac80211 transmission flags, used to process properly the frame at user space : estimated rx rate index for this frame at user space : estimated RX signal for this frame at user space : ieee80211_tx_rate array : sk_buff cookie to identify the frame : enum limit
HWSIM_ATTR_UNSPEC | |
HWSIM_ATTR_ADDR_RECEIVER | |
HWSIM_ATTR_ADDR_TRANSMITTER | |
HWSIM_ATTR_FRAME | |
HWSIM_ATTR_FLAGS | |
HWSIM_ATTR_RX_RATE | |
HWSIM_ATTR_SIGNAL | |
HWSIM_ATTR_TX_INFO | |
HWSIM_ATTR_COOKIE | |
__HWSIM_ATTR_MAX |
Definition at line 101 of file mac80211_hwsim.h.
enum hwsim_tx_control_flags - flags to describe transmission info/status
These flags are used to give the wmediumd extra information in order to modify its behavior for each frame
: require TX status callback for this frame. : tell the wmediumd not to wait for an ack : Frame was acknowledged
Definition at line 25 of file mac80211_hwsim.h.