treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / wireless / ath / ath11k / testmode_i.h
blob4bae2a9eeea4f09197fdb6d42aae681b69adbeb1
1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */
2 /*
3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
4 */
6 /* "API" level of the ath11k testmode interface. Bump it after every
7 * incompatible interface change.
8 */
9 #define ATH11K_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 ATH11K_TESTMODE_VERSION_MINOR 0
16 #define ATH11K_TM_DATA_MAX_LEN 5000
18 enum ath11k_tm_attr {
19 __ATH11K_TM_ATTR_INVALID = 0,
20 ATH11K_TM_ATTR_CMD = 1,
21 ATH11K_TM_ATTR_DATA = 2,
22 ATH11K_TM_ATTR_WMI_CMDID = 3,
23 ATH11K_TM_ATTR_VERSION_MAJOR = 4,
24 ATH11K_TM_ATTR_VERSION_MINOR = 5,
25 ATH11K_TM_ATTR_WMI_OP_VERSION = 6,
27 /* keep last */
28 __ATH11K_TM_ATTR_AFTER_LAST,
29 ATH11K_TM_ATTR_MAX = __ATH11K_TM_ATTR_AFTER_LAST - 1,
32 /* All ath11k testmode interface commands specified in
33 * ATH11K_TM_ATTR_CMD
35 enum ath11k_tm_cmd {
36 /* Returns the supported ath11k testmode interface version in
37 * ATH11K_TM_ATTR_VERSION. Always guaranteed to work. User space
38 * uses this to verify it's using the correct version of the
39 * testmode interface
41 ATH11K_TM_CMD_GET_VERSION = 0,
43 /* The command used to transmit a WMI command to the firmware and
44 * the event to receive WMI events from the firmware. Without
45 * struct wmi_cmd_hdr header, only the WMI payload. Command id is
46 * provided with ATH11K_TM_ATTR_WMI_CMDID and payload in
47 * ATH11K_TM_ATTR_DATA.
49 ATH11K_TM_CMD_WMI = 1,