qcacmn: Enable CFR support for QCA9574

Enable CFR host support for QCA9574.

Change-Id: I8d6a0f5b59715f244256854fc2132f33f841f316
CRs-Fixed: 3062447
This commit is contained in:
narayan
2021-10-28 16:06:46 +05:30
committed by Madan Koyyalamudi
父節點 146d67af95
當前提交 70ade22606
共有 2 個文件被更改,包括 10 次插入2 次删除

查看文件

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -249,6 +250,9 @@ void target_if_cfr_fill_header(struct csi_cfr_header *hdr,
} else if (target_type == TARGET_TYPE_QCA8074V2) {
hdr->cmn.cfr_metadata_version = CFR_META_VERSION_6;
hdr->cmn.chip_type = CFR_CAPTURE_RADIO_HKV2;
} else if (target_type == TARGET_TYPE_QCA9574) {
hdr->cmn.cfr_metadata_version = CFR_META_VERSION_6;
hdr->cmn.chip_type = CFR_CAPTURE_RADIO_ALDER;
} else {
if (target_type == TARGET_TYPE_QCN9000)
hdr->cmn.cfr_metadata_version = CFR_META_VERSION_7;
@@ -430,7 +434,8 @@ target_if_cfr_init_pdev(struct wlan_objmgr_psoc *psoc,
target_type = target_if_cfr_get_target_type(psoc);
if (target_type == TARGET_TYPE_QCA8074V2) {
if ((target_type == TARGET_TYPE_QCA8074V2) ||
(target_type == TARGET_TYPE_QCA9574)) {
pa->is_cfr_capable = cfr_sc->is_cfr_capable;
return cfr_dbr_init_pdev(psoc, pdev);
} else if ((target_type == TARGET_TYPE_IPQ4019) ||
@@ -463,7 +468,8 @@ target_if_cfr_deinit_pdev(struct wlan_objmgr_psoc *psoc,
target_type = target_if_cfr_get_target_type(psoc);
if (target_type == TARGET_TYPE_QCA8074V2) {
if ((target_type == TARGET_TYPE_QCA8074V2) ||
(target_type == TARGET_TYPE_QCA9574)) {
return cfr_dbr_deinit_pdev(psoc, pdev);
} else if ((target_type == TARGET_TYPE_IPQ4019) ||
(target_type == TARGET_TYPE_QCA9984) ||

查看文件

@@ -1,6 +1,7 @@
/*
* Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -114,6 +115,7 @@ enum cfrradiotype {
CFR_CAPTURE_RADIO_MAPLE,
CFR_CAPTURE_RADIO_MOSELLE,
CFR_CAPTURE_RADIO_SPRUCE,
CFR_CAPTURE_RADIO_ALDER,
CFR_CAPTURE_RADIO_MAX = 0xFF,
};