.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211 |
---|
3 | 4 | * Copyright (c) 2008, Jouni Malinen <j@w1.fi> |
---|
4 | 5 | * Copyright (c) 2011, Javier Lopez <jlopex@gmail.com> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
| 6 | + * Copyright (C) 2020 Intel Corporation |
---|
9 | 7 | */ |
---|
10 | 8 | |
---|
11 | 9 | #ifndef __MAC80211_HWSIM_H |
---|
.. | .. |
---|
77 | 75 | * @HWSIM_CMD_DEL_RADIO: destroy a radio, reply is multicasted |
---|
78 | 76 | * @HWSIM_CMD_GET_RADIO: fetch information about existing radios, uses: |
---|
79 | 77 | * %HWSIM_ATTR_RADIO_ID |
---|
| 78 | + * @HWSIM_CMD_ADD_MAC_ADDR: add a receive MAC address (given in the |
---|
| 79 | + * %HWSIM_ATTR_ADDR_RECEIVER attribute) to a device identified by |
---|
| 80 | + * %HWSIM_ATTR_ADDR_TRANSMITTER. This lets wmediumd forward frames |
---|
| 81 | + * to this receiver address for a given station. |
---|
| 82 | + * @HWSIM_CMD_DEL_MAC_ADDR: remove the MAC address again, the attributes |
---|
| 83 | + * are the same as to @HWSIM_CMD_ADD_MAC_ADDR. |
---|
80 | 84 | * @__HWSIM_CMD_MAX: enum limit |
---|
81 | 85 | */ |
---|
82 | 86 | enum { |
---|
.. | .. |
---|
87 | 91 | HWSIM_CMD_NEW_RADIO, |
---|
88 | 92 | HWSIM_CMD_DEL_RADIO, |
---|
89 | 93 | HWSIM_CMD_GET_RADIO, |
---|
| 94 | + HWSIM_CMD_ADD_MAC_ADDR, |
---|
| 95 | + HWSIM_CMD_DEL_MAC_ADDR, |
---|
90 | 96 | __HWSIM_CMD_MAX, |
---|
91 | 97 | }; |
---|
92 | 98 | #define HWSIM_CMD_MAX (_HWSIM_CMD_MAX - 1) |
---|
.. | .. |
---|
132 | 138 | * @HWSIM_ATTR_TX_INFO_FLAGS: additional flags for corresponding |
---|
133 | 139 | * rates of %HWSIM_ATTR_TX_INFO |
---|
134 | 140 | * @HWSIM_ATTR_PERM_ADDR: permanent mac address of new radio |
---|
| 141 | + * @HWSIM_ATTR_IFTYPE_SUPPORT: u32 attribute of supported interface types bits |
---|
| 142 | + * @HWSIM_ATTR_CIPHER_SUPPORT: u32 array of supported cipher types |
---|
135 | 143 | * @__HWSIM_ATTR_MAX: enum limit |
---|
136 | 144 | */ |
---|
137 | 145 | |
---|
.. | .. |
---|
160 | 168 | HWSIM_ATTR_PAD, |
---|
161 | 169 | HWSIM_ATTR_TX_INFO_FLAGS, |
---|
162 | 170 | HWSIM_ATTR_PERM_ADDR, |
---|
| 171 | + HWSIM_ATTR_IFTYPE_SUPPORT, |
---|
| 172 | + HWSIM_ATTR_CIPHER_SUPPORT, |
---|
163 | 173 | __HWSIM_ATTR_MAX, |
---|
164 | 174 | }; |
---|
165 | 175 | #define HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1) |
---|
.. | .. |
---|
244 | 254 | s8 idx; |
---|
245 | 255 | u16 flags; |
---|
246 | 256 | } __packed; |
---|
| 257 | + |
---|
| 258 | +/** |
---|
| 259 | + * DOC: Frame transmission support over virtio |
---|
| 260 | + * |
---|
| 261 | + * Frame transmission is also supported over virtio to allow communication |
---|
| 262 | + * with external entities. |
---|
| 263 | + */ |
---|
| 264 | + |
---|
| 265 | +/** |
---|
| 266 | + * enum hwsim_vqs - queues for virtio frame transmission |
---|
| 267 | + * |
---|
| 268 | + * @HWSIM_VQ_TX: send frames to external entity |
---|
| 269 | + * @HWSIM_VQ_RX: receive frames and transmission info reports |
---|
| 270 | + * @HWSIM_NUM_VQS: enum limit |
---|
| 271 | + */ |
---|
| 272 | +enum { |
---|
| 273 | + HWSIM_VQ_TX, |
---|
| 274 | + HWSIM_VQ_RX, |
---|
| 275 | + HWSIM_NUM_VQS, |
---|
| 276 | +}; |
---|
247 | 277 | #endif /* __MAC80211_HWSIM_H */ |
---|