qcacmn: Register to direct buffer rx with QCA6390

Register spectral to direct buffer rx with QCA6390.

Change-Id: Ib07fc36faf6ba4cc5aff9203d70aef732bb703e3
CRs-Fixed: 2497826
This commit is contained in:
Wu Gao
2019-06-26 14:39:08 +08:00
committed by nshrivas
parent 4ee1b5e28d
commit d45d248743
2 changed files with 10 additions and 5 deletions

View File

@@ -299,15 +299,18 @@ tgt_spectral_register_to_dbr(struct wlan_objmgr_pdev *pdev)
struct wlan_objmgr_psoc *psoc; struct wlan_objmgr_psoc *psoc;
struct wlan_lmac_if_direct_buf_rx_tx_ops *dbr_tx_ops = NULL; struct wlan_lmac_if_direct_buf_rx_tx_ops *dbr_tx_ops = NULL;
struct dbr_module_config dbr_config = {0}; struct dbr_module_config dbr_config = {0};
uint32_t target_type;
psoc = wlan_pdev_get_psoc(pdev); psoc = wlan_pdev_get_psoc(pdev);
dbr_tx_ops = &psoc->soc_cb.tx_ops.dbr_tx_ops; dbr_tx_ops = &psoc->soc_cb.tx_ops.dbr_tx_ops;
dbr_config.num_resp_per_event = DBR_NUM_RESP_PER_EVENT_SPECTRAL; dbr_config.num_resp_per_event = DBR_NUM_RESP_PER_EVENT_SPECTRAL;
dbr_config.event_timeout_in_ms = DBR_EVENT_TIMEOUT_IN_MS_SPECTRAL; dbr_config.event_timeout_in_ms = DBR_EVENT_TIMEOUT_IN_MS_SPECTRAL;
target_type = tgt_spectral_get_target_type(psoc);
if ((tgt_spectral_get_target_type(psoc) == TARGET_TYPE_QCA8074) || if ((target_type == TARGET_TYPE_QCA8074) ||
(tgt_spectral_get_target_type(psoc) == TARGET_TYPE_QCA8074V2) || (target_type == TARGET_TYPE_QCA8074V2) ||
(tgt_spectral_get_target_type(psoc) == TARGET_TYPE_QCA6018)) (target_type == TARGET_TYPE_QCA6018) ||
(target_type == TARGET_TYPE_QCA6390))
if (dbr_tx_ops->direct_buf_rx_module_register) if (dbr_tx_ops->direct_buf_rx_module_register)
return dbr_tx_ops->direct_buf_rx_module_register return dbr_tx_ops->direct_buf_rx_module_register
(pdev, 0, &dbr_config, (pdev, 0, &dbr_config,

View File

@@ -2028,7 +2028,8 @@ target_if_pdev_spectral_init(struct wlan_objmgr_pdev *pdev)
spectral->fftbin_size_war = spectral->fftbin_size_war =
SPECTRAL_FFTBIN_SIZE_WAR_2BYTE_TO_1BYTE; SPECTRAL_FFTBIN_SIZE_WAR_2BYTE_TO_1BYTE;
else if (target_type == TARGET_TYPE_QCA8074 || else if (target_type == TARGET_TYPE_QCA8074 ||
target_type == TARGET_TYPE_QCA6018) target_type == TARGET_TYPE_QCA6018 ||
target_type == TARGET_TYPE_QCA6390)
spectral->fftbin_size_war = spectral->fftbin_size_war =
SPECTRAL_FFTBIN_SIZE_WAR_4BYTE_TO_1BYTE; SPECTRAL_FFTBIN_SIZE_WAR_4BYTE_TO_1BYTE;
else else
@@ -2048,7 +2049,8 @@ target_if_pdev_spectral_init(struct wlan_objmgr_pdev *pdev)
(target_type == TARGET_TYPE_QCA8074V2) || (target_type == TARGET_TYPE_QCA8074V2) ||
(target_type == TARGET_TYPE_QCA6018) || (target_type == TARGET_TYPE_QCA6018) ||
(target_type == TARGET_TYPE_QCN9000) || (target_type == TARGET_TYPE_QCN9000) ||
(target_type == TARGET_TYPE_QCA6290)) { (target_type == TARGET_TYPE_QCA6290) ||
(target_type == TARGET_TYPE_QCA6390)) {
spectral->spectral_gen = SPECTRAL_GEN3; spectral->spectral_gen = SPECTRAL_GEN3;
spectral->hdr_sig_exp = SPECTRAL_PHYERR_SIGNATURE_GEN3; spectral->hdr_sig_exp = SPECTRAL_PHYERR_SIGNATURE_GEN3;
spectral->tag_sscan_summary_exp = spectral->tag_sscan_summary_exp =