qcacmn: iot_sim code cleanup in wmi
Refactor code and put iot_sim code under feature flag. Change-Id: Id4720d63ae174d9f4490285e6eb69ab2972ccd28 CRs-Fixed: 2707122
This commit is contained in:

committed by
nshrivas

parent
81b11d79c5
commit
cb709cad18
@@ -109,6 +109,10 @@
|
||||
#include "wlan_pkt_capture_public_structs.h"
|
||||
#endif
|
||||
|
||||
#ifdef WLAN_IOT_SIM_SUPPORT
|
||||
#include "wlan_iot_sim_public_structs.h"
|
||||
#endif
|
||||
|
||||
typedef qdf_nbuf_t wmi_buf_t;
|
||||
#define wmi_buf_data(_buf) qdf_nbuf_data(_buf)
|
||||
|
||||
@@ -1993,6 +1997,7 @@ QDF_STATUS wmi_unified_smart_ant_enable_tx_feedback_cmd_send(
|
||||
wmi_unified_t wmi_handle,
|
||||
struct smart_ant_enable_tx_feedback_params *param);
|
||||
|
||||
#ifdef WLAN_IOT_SIM_SUPPORT
|
||||
/**
|
||||
* wmi_unified_simulation_test_cmd_send() -
|
||||
* WMI simulation test command
|
||||
@@ -2004,6 +2009,7 @@ QDF_STATUS wmi_unified_smart_ant_enable_tx_feedback_cmd_send(
|
||||
QDF_STATUS wmi_unified_simulation_test_cmd_send(wmi_unified_t wmi_handle,
|
||||
struct simulation_test_params
|
||||
*param);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wmi_unified_vdev_spectral_configure_cmd_send() -
|
||||
|
@@ -2919,37 +2919,6 @@ struct smart_ant_enable_tx_feedback_params {
|
||||
int enable;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct simulation_test_params
|
||||
* pdev_id: pdev id
|
||||
* vdev_id: vdev id
|
||||
* peer_macaddr: peer MAC address
|
||||
* test_cmd_type: test command type
|
||||
* test_subcmd_type: test command sub type
|
||||
* frame_type: frame type
|
||||
* frame_subtype: frame subtype
|
||||
* seq: sequence number
|
||||
* offset: Frame content offset
|
||||
* frame_length: Frame content length
|
||||
* buf_len: Buffer length
|
||||
* bufp: buffer
|
||||
*/
|
||||
struct simulation_test_params {
|
||||
u32 pdev_id;
|
||||
u32 vdev_id;
|
||||
u8 peer_mac[QDF_MAC_ADDR_SIZE];
|
||||
u32 test_cmd_type;
|
||||
u32 test_subcmd_type;
|
||||
u8 frame_type;
|
||||
u8 frame_subtype;
|
||||
u8 seq;
|
||||
u8 reserved;
|
||||
u16 offset;
|
||||
u16 frame_length;
|
||||
u32 buf_len;
|
||||
u8 *bufp;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct vdev_spectral_configure_params - SPectral config params
|
||||
* @vdev_id: VDEV id
|
||||
|
@@ -1205,8 +1205,10 @@ QDF_STATUS (*send_smart_ant_set_node_config_cmd)(wmi_unified_t wmi_handle,
|
||||
struct smart_ant_node_config_params *param);
|
||||
#endif
|
||||
|
||||
#ifdef WLAN_IOT_SIM_SUPPORT
|
||||
QDF_STATUS (*send_simulation_test_cmd)(wmi_unified_t wmi_handle,
|
||||
struct simulation_test_params *param);
|
||||
#endif
|
||||
|
||||
QDF_STATUS (*send_smart_ant_enable_tx_feedback_cmd)(wmi_unified_t wmi_handle,
|
||||
struct smart_ant_enable_tx_feedback_params *param);
|
||||
|
@@ -1296,6 +1296,7 @@ wmi_unified_smart_ant_enable_tx_feedback_cmd_send(
|
||||
}
|
||||
qdf_export_symbol(wmi_unified_smart_ant_enable_tx_feedback_cmd_send);
|
||||
|
||||
#ifdef WLAN_IOT_SIM_SUPPORT
|
||||
QDF_STATUS
|
||||
wmi_unified_simulation_test_cmd_send(
|
||||
wmi_unified_t wmi_handle,
|
||||
@@ -1308,6 +1309,7 @@ wmi_unified_simulation_test_cmd_send(
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
qdf_export_symbol(wmi_unified_simulation_test_cmd_send);
|
||||
#endif
|
||||
|
||||
QDF_STATUS
|
||||
wmi_unified_vdev_spectral_configure_cmd_send(
|
||||
|
@@ -6415,6 +6415,7 @@ send_periodic_chan_stats_config_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef WLAN_IOT_SIM_SUPPORT
|
||||
/**
|
||||
* send_simulation_test_cmd_tlv() - send simulation test command to fw
|
||||
*
|
||||
@@ -6480,6 +6481,7 @@ static QDF_STATUS send_simulation_test_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* send_vdev_spectral_configure_cmd_tlv() - send VDEV spectral configure
|
||||
@@ -14295,7 +14297,9 @@ struct wmi_ops tlv_ops = {
|
||||
.send_phyerr_enable_cmd = send_phyerr_enable_cmd_tlv,
|
||||
.send_periodic_chan_stats_config_cmd =
|
||||
send_periodic_chan_stats_config_cmd_tlv,
|
||||
#ifdef WLAN_IOT_SIM_SUPPORT
|
||||
.send_simulation_test_cmd = send_simulation_test_cmd_tlv,
|
||||
#endif
|
||||
.send_vdev_spectral_configure_cmd =
|
||||
send_vdev_spectral_configure_cmd_tlv,
|
||||
.send_vdev_spectral_enable_cmd =
|
||||
|
Reference in New Issue
Block a user