1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /**
8  * @brief Header containing command specific declarations for the
9  * radio test mode in the FMAC IF Layer of the Wi-Fi driver.
10  */
11 
12 #ifndef __FMAC_CMD_RT_H__
13 #define __FMAC_CMD_RT_H__
14 
15 #include "common/fmac_cmd_common.h"
16 
17 #define NRF_WIFI_FMAC_RF_TEST_EVNT_TIMEOUT 50 /* 5s */
18 
19 enum nrf_wifi_status umac_cmd_rt_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
20 				      struct nrf_wifi_phy_rf_params *rf_params,
21 				      bool rf_params_valid,
22 #ifdef NRF_WIFI_LOW_POWER
23 				      int sleep_type,
24 #endif /* NRF_WIFI_LOW_POWER */
25 				      unsigned int phy_calib,
26 				      enum op_band op_band,
27 				      bool beamforming,
28 				      struct nrf_wifi_tx_pwr_ctrl_params *tx_pwr_ctrl_params,
29 				      struct nrf_wifi_board_params *board_params,
30 				      unsigned char *country_code);
31 
32 enum nrf_wifi_status umac_cmd_rt_prog_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
33 					   struct nrf_wifi_radio_test_init_info *init_params);
34 
35 enum nrf_wifi_status umac_cmd_rt_prog_tx(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
36 					 struct rpu_conf_params *params);
37 
38 enum nrf_wifi_status umac_cmd_rt_prog_rx(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
39 					 struct rpu_conf_rx_radio_test_params *rx_params);
40 
41 enum nrf_wifi_status umac_cmd_rt_prog_rf_test(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
42 					      void *rf_test_params,
43 					      unsigned int rf_test_params_sz);
44 
45 
46 enum nrf_wifi_status umac_cmd_rt_prog_stats_get(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
47 						int op_mode);
48 #endif /* __FMAC_CMD_RT_H__ */
49