1 /* SPDX-License-Identifier: ISC */
3 * Copyright (c) 2014,2017 Qualcomm Atheros, Inc.
6 /* "API" level of the ath10k testmode interface. Bump it after every
7 * incompatible interface change.
9 #define ATH10K_TESTMODE_VERSION_MAJOR 1
11 /* Bump this after every _compatible_ interface change, for example
12 * addition of a new command or an attribute.
14 #define ATH10K_TESTMODE_VERSION_MINOR 0
16 #define ATH10K_TM_DATA_MAX_LEN 5000
19 __ATH10K_TM_ATTR_INVALID
= 0,
20 ATH10K_TM_ATTR_CMD
= 1,
21 ATH10K_TM_ATTR_DATA
= 2,
22 ATH10K_TM_ATTR_WMI_CMDID
= 3,
23 ATH10K_TM_ATTR_VERSION_MAJOR
= 4,
24 ATH10K_TM_ATTR_VERSION_MINOR
= 5,
25 ATH10K_TM_ATTR_WMI_OP_VERSION
= 6,
28 __ATH10K_TM_ATTR_AFTER_LAST
,
29 ATH10K_TM_ATTR_MAX
= __ATH10K_TM_ATTR_AFTER_LAST
- 1,
32 /* All ath10k testmode interface commands specified in
36 /* Returns the supported ath10k testmode interface version in
37 * ATH10K_TM_ATTR_VERSION. Always guaranteed to work. User space
38 * uses this to verify it's using the correct version of the
41 ATH10K_TM_CMD_GET_VERSION
= 0,
43 /* Boots the UTF firmware, the netdev interface must be down at the
46 ATH10K_TM_CMD_UTF_START
= 1,
48 /* Shuts down the UTF firmware and puts the driver back into OFF
51 ATH10K_TM_CMD_UTF_STOP
= 2,
53 /* The command used to transmit a WMI command to the firmware and
54 * the event to receive WMI events from the firmware. Without
55 * struct wmi_cmd_hdr header, only the WMI payload. Command id is
56 * provided with ATH10K_TM_ATTR_WMI_CMDID and payload in
57 * ATH10K_TM_ATTR_DATA.
59 ATH10K_TM_CMD_WMI
= 3,