forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/mac80211_hwsim.h
....@@ -1,11 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211
34 * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
45 * 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
97 */
108
119 #ifndef __MAC80211_HWSIM_H
....@@ -77,6 +75,12 @@
7775 * @HWSIM_CMD_DEL_RADIO: destroy a radio, reply is multicasted
7876 * @HWSIM_CMD_GET_RADIO: fetch information about existing radios, uses:
7977 * %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.
8084 * @__HWSIM_CMD_MAX: enum limit
8185 */
8286 enum {
....@@ -87,6 +91,8 @@
8791 HWSIM_CMD_NEW_RADIO,
8892 HWSIM_CMD_DEL_RADIO,
8993 HWSIM_CMD_GET_RADIO,
94
+ HWSIM_CMD_ADD_MAC_ADDR,
95
+ HWSIM_CMD_DEL_MAC_ADDR,
9096 __HWSIM_CMD_MAX,
9197 };
9298 #define HWSIM_CMD_MAX (_HWSIM_CMD_MAX - 1)
....@@ -132,6 +138,8 @@
132138 * @HWSIM_ATTR_TX_INFO_FLAGS: additional flags for corresponding
133139 * rates of %HWSIM_ATTR_TX_INFO
134140 * @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
135143 * @__HWSIM_ATTR_MAX: enum limit
136144 */
137145
....@@ -160,6 +168,8 @@
160168 HWSIM_ATTR_PAD,
161169 HWSIM_ATTR_TX_INFO_FLAGS,
162170 HWSIM_ATTR_PERM_ADDR,
171
+ HWSIM_ATTR_IFTYPE_SUPPORT,
172
+ HWSIM_ATTR_CIPHER_SUPPORT,
163173 __HWSIM_ATTR_MAX,
164174 };
165175 #define HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1)
....@@ -244,4 +254,24 @@
244254 s8 idx;
245255 u16 flags;
246256 } __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
+};
247277 #endif /* __MAC80211_HWSIM_H */