1 /* 2 * Copyright (c) 2020 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /** 21 * DOC: Declare structs and macros which can be accessed by various 22 * components and modules. 23 */ 24 25 #ifndef _WLAN_WFA_CONFIG_PUBLIC_STRUCT_H_ 26 #define _WLAN_WFA_CONFIG_PUBLIC_STRUCT_H_ 27 28 #include <wlan_cmn.h> 29 #include <qdf_status.h> 30 #include <qdf_types.h> 31 32 /** 33 * struct wlan_wfa_cmd_tx_ops - structure of tx function pointers for wfa 34 * test cmds 35 * @send_wfa_test_cmd: TX ops function pointer to send WFA test command 36 */ 37 struct wlan_wfa_cmd_tx_ops { 38 QDF_STATUS (*send_wfa_test_cmd)(struct wlan_objmgr_vdev *vdev, 39 struct set_wfatest_params *wfa_test); 40 }; 41 42 /** 43 * enum wlan_wfa_test_feature_flags - WFA test feature flags 44 * @WFA_TEST_IGNORE_RSNXE: Ignore the H2E RSNXE mismatch for 6g connection when 45 * this flag is set 46 */ 47 enum wlan_wfa_test_feature_flags { 48 WFA_TEST_IGNORE_RSNXE = 0x1, 49 }; 50 51 /** 52 * struct wlan_mlme_wfa_cmd - WFA test command tx ops 53 * @tx_ops: WFA test command Tx ops to send commands to firmware 54 * @flags: WFA test feature flags to do feature specific operations 55 */ 56 struct wlan_mlme_wfa_cmd { 57 struct wlan_wfa_cmd_tx_ops tx_ops; 58 enum wlan_wfa_test_feature_flags flags; 59 }; 60 61 #endif /* _WLAN_WFA_CONFIG_PUBLIC_STRUCT_H_ */ 62