wpa_supplicant / hostapd
2.5
|
wpa_supplicant - Off-channel Action frame TX/RX Copyright (c) 2011, Qualcomm Atheros More...
Go to the source code of this file.
Functions | |
int | offchannel_send_action (struct wpa_supplicant *wpa_s, unsigned int freq, const u8 *dst, const u8 *src, const u8 *bssid, const u8 *buf, size_t len, unsigned int wait_time, void(*tx_cb)(struct wpa_supplicant *wpa_s, unsigned int freq, const u8 *dst, const u8 *src, const u8 *bssid, const u8 *data, size_t data_len, enum offchannel_send_action_resultresult), int no_cck) |
Request off-channel Action frame TX. More... | |
void | offchannel_send_action_done (struct wpa_supplicant *wpa_s) |
Notify completion of Action frame sequence. More... | |
void | offchannel_remain_on_channel_cb (struct wpa_supplicant *wpa_s, unsigned int freq, unsigned int duration) |
Remain-on-channel callback function. More... | |
void | offchannel_cancel_remain_on_channel_cb (struct wpa_supplicant *wpa_s, unsigned int freq) |
Remain-on-channel stopped callback. More... | |
void | offchannel_deinit (struct wpa_supplicant *wpa_s) |
Deinit off-channel operations. More... | |
void | offchannel_send_action_tx_status (struct wpa_supplicant *wpa_s, const u8 *dst, const u8 *data, size_t data_len, enum offchannel_send_action_result result) |
TX status callback. More... | |
const void * | offchannel_pending_action_tx (struct wpa_supplicant *wpa_s) |
Check whether there is a pending Action TX. More... | |
void | offchannel_clear_pending_action_tx (struct wpa_supplicant *wpa_s) |
Clear pending Action frame TX. More... | |
wpa_supplicant - Off-channel Action frame TX/RX Copyright (c) 2011, Qualcomm Atheros
void offchannel_cancel_remain_on_channel_cb | ( | struct wpa_supplicant * | wpa_s, |
unsigned int | freq | ||
) |
Remain-on-channel stopped callback.
wpa_s | Pointer to wpa_supplicant data |
freq | Frequency (in MHz) of the selected channel |
This function is called whenever the driver notifies termination of a remain-on-channel operation.
void offchannel_clear_pending_action_tx | ( | struct wpa_supplicant * | wpa_s | ) |
Clear pending Action frame TX.
wpa_s | Pointer to wpa_supplicant data |
void offchannel_deinit | ( | struct wpa_supplicant * | wpa_s | ) |
Deinit off-channel operations.
wpa_s | Pointer to wpa_supplicant data |
This function is used to free up any allocated resources for off-channel operations.
const void* offchannel_pending_action_tx | ( | struct wpa_supplicant * | wpa_s | ) |
Check whether there is a pending Action TX.
wpa_s | Pointer to wpa_supplicant data |
This function can be used to check whether there is a pending Action frame TX operation. The returned pointer should be used only for checking whether it is NULL (no pending frame) or to print the pointer value in debug information (i.e., the pointer should not be dereferenced).
void offchannel_remain_on_channel_cb | ( | struct wpa_supplicant * | wpa_s, |
unsigned int | freq, | ||
unsigned int | duration | ||
) |
Remain-on-channel callback function.
wpa_s | Pointer to wpa_supplicant data |
freq | Frequency (in MHz) of the selected channel |
duration | Duration of the remain-on-channel operation in milliseconds |
This function is called whenever the driver notifies beginning of a remain-on-channel operation.
int offchannel_send_action | ( | struct wpa_supplicant * | wpa_s, |
unsigned int | freq, | ||
const u8 * | dst, | ||
const u8 * | src, | ||
const u8 * | bssid, | ||
const u8 * | buf, | ||
size_t | len, | ||
unsigned int | wait_time, | ||
void(*)(struct wpa_supplicant *wpa_s, unsigned int freq, const u8 *dst, const u8 *src, const u8 *bssid, const u8 *data, size_t data_len, enum offchannel_send_action_resultresult) | tx_cb, | ||
int | no_cck | ||
) |
Request off-channel Action frame TX.
wpa_s | Pointer to wpa_supplicant data |
freq | The frequency in MHz indicating the channel on which the frame is to transmitted or 0 for the current channel (only if associated) |
dst | Action frame destination MAC address |
src | Action frame source MAC address |
bssid | Action frame BSSID |
buf | Frame to transmit starting from the Category field |
len | Length of buf in bytes |
wait_time | Wait time for response in milliseconds |
tx_cb | Callback function for indicating TX status or NULL for now callback |
no_cck | Whether CCK rates are to be disallowed for TX rate selection |
This function is used to request an Action frame to be transmitted on the current operating channel or on another channel (off-channel). The actual frame transmission will be delayed until the driver is ready on the specified channel. The wait_time parameter can be used to request the driver to remain awake on the channel to wait for a response.
void offchannel_send_action_done | ( | struct wpa_supplicant * | wpa_s | ) |
Notify completion of Action frame sequence.
wpa_s | Pointer to wpa_supplicant data |
This function can be used to cancel a wait for additional response frames on the channel that was used with offchannel_send_action().
void offchannel_send_action_tx_status | ( | struct wpa_supplicant * | wpa_s, |
const u8 * | dst, | ||
const u8 * | data, | ||
size_t | data_len, | ||
enum offchannel_send_action_result | result | ||
) |
TX status callback.
wpa_s | Pointer to wpa_supplicant data |
dst | Destination MAC address of the transmitted Action frame |
data | Transmitted frame payload |
data_len | Length of data in bytes |
result | TX status |
This function is called whenever the driver indicates a TX status event for a frame sent by offchannel_send_action() using wpa_drv_send_action().