Add BSSID to TX/RX Action frame driver ops
This meets better the needs for various Public Action frame use cases.
This commit is contained in:
parent
4e5cb1a366
commit
e882899981
3 changed files with 28 additions and 5 deletions
|
@ -1594,8 +1594,9 @@ struct wpa_driver_ops {
|
|||
* send_action - Transmit an Action frame
|
||||
* @priv: Private driver interface data
|
||||
* @freq: Frequency (in MHz) of the channel
|
||||
* @dst: Destination MAC address
|
||||
* @src: Source MAC address
|
||||
* @dst: Destination MAC address (Address 1)
|
||||
* @src: Source MAC address (Address 2)
|
||||
* @bssid: BSSID (Address 3)
|
||||
* @data: Frame body
|
||||
* @data_len: data length in octets
|
||||
* Returns: 0 on success, -1 on failure
|
||||
|
@ -1608,7 +1609,7 @@ struct wpa_driver_ops {
|
|||
* of these conditions is in effect, send_action() cannot be used.
|
||||
*/
|
||||
int (*send_action)(void *priv, unsigned int freq,
|
||||
const u8 *dst, const u8 *src,
|
||||
const u8 *dst, const u8 *src, const u8 *bssid,
|
||||
const u8 *data, size_t data_len);
|
||||
|
||||
/**
|
||||
|
@ -2235,11 +2236,21 @@ union wpa_event_data {
|
|||
* struct rx_action - Data for EVENT_RX_ACTION events
|
||||
*/
|
||||
struct rx_action {
|
||||
/**
|
||||
* da - Destination address of the received Action frame
|
||||
*/
|
||||
const u8 *da;
|
||||
|
||||
/**
|
||||
* sa - Source address of the received Action frame
|
||||
*/
|
||||
const u8 *sa;
|
||||
|
||||
/**
|
||||
* bssid - Address 3 of the received Action frame
|
||||
*/
|
||||
const u8 *bssid;
|
||||
|
||||
/**
|
||||
* category - Action frame category
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue