xref: /wlan-driver/qca-wifi-host-cmn/iot_sim/dispatcher/inc/wlan_iot_sim_public_structs.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2020, The Linux Foundation. All rights reserved.
3  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 
18 #include <qdf_types.h>
19 
20 #ifndef _WLAN_IOT_SIM__PUBLIC_STRUCTS_H_
21 #define _WLAN_IOT_SIM__PUBLIC_STRUCTS_H_
22 
23 /**
24  * struct simulation_test_params - IOT Similation test parameters
25  * @pdev_id: pdev id
26  * @vdev_id: vdev id
27  * @peer_mac: peer MAC address
28  * @test_cmd_type: test command type
29  * @test_subcmd_type: test command sub type
30  * @frame_type: frame type
31  * @frame_subtype: frame subtype
32  * @seq: sequence number
33  * @reserved: reserved for future use
34  * @offset: Frame content offset
35  * @frame_length: Frame content length
36  * @buf_len: Buffer length
37  * @bufp: buffer
38  */
39 struct simulation_test_params {
40 	u32 pdev_id;
41 	u32 vdev_id;
42 	u8 peer_mac[QDF_MAC_ADDR_SIZE];
43 	u32 test_cmd_type;
44 	u32 test_subcmd_type;
45 	u8 frame_type;
46 	u8 frame_subtype;
47 	u8 seq;
48 	u8 reserved;
49 	u16 offset;
50 	u16 frame_length;
51 	u32 buf_len;
52 	u8 *bufp;
53 };
54 
55 #endif	/* _WLAN_IOT_SIM__PUBLIC_STRUCTS_H_ */
56