qcacmn: Mark blanking support as false for AR9887

Mark the blanking support as not supported and
return success status for AR9887
in target_is_scan_blanking_enabled().

Change-Id: I055f4d3b30781189744b0d96db4a93b61c0cf1f4
CRs-Fixed: 3430100
This commit is contained in:
Jhalak Naik
2023-03-15 14:44:00 +05:30
committed by Madan Koyyalamudi
parent 47c7b5dfc8
commit 0e4acb24f3

View File

@@ -1029,6 +1029,10 @@ target_is_scan_blanking_enabled(struct wlan_objmgr_pdev *pdev,
int32_t phy_id;
struct target_psoc_info *tgt_psoc_info;
struct target_pdev_info *tgt_pdev;
uint32_t target_type = TARGET_TYPE_UNKNOWN;
struct wlan_lmac_if_target_tx_ops *target_type_tx_ops;
struct wlan_lmac_if_tx_ops *tx_ops;
if (!blanking_en) {
target_if_err("input argument is null");
@@ -1053,6 +1057,21 @@ target_is_scan_blanking_enabled(struct wlan_objmgr_pdev *pdev,
return QDF_STATUS_E_NULL_VALUE;
}
tx_ops = wlan_psoc_get_lmac_if_txops(psoc);
if (!tx_ops) {
target_if_err("tx_ops is null");
return QDF_STATUS_E_NULL_VALUE;
}
target_type_tx_ops = &tx_ops->target_tx_ops;
if (target_type_tx_ops->tgt_get_tgt_type)
target_type = target_type_tx_ops->tgt_get_tgt_type(psoc);
if (target_type == TARGET_TYPE_AR9888) {
*blanking_en = false;
return QDF_STATUS_SUCCESS;
}
num_scan_radio_caps =
target_psoc_get_num_scan_radio_caps(tgt_psoc_info);
if (!num_scan_radio_caps) {