qcacmn: Support for IPQ8074 2G PHYB mode 2/3
This mode is supported through hw_mode_id 7. A special mode for IPQ8074 platform alone to bring up single pdev alone on 2G mode. FW would advertise the mode 7 support through the WMI service ready message and this mode will be the default mode for AP-HK10 alone. Added preferred_hw_mode and target_pdev_id into dp structures so that they can be used to configure the dp rings for this particular mode. Also changed the lmac_id to target_pdev_id mapping for mode 7. Change-Id: I3aae46fea13132eebaf7d37cff68ef517253d229
This commit is contained in:

committed by
nshrivas

parent
c6ca857257
commit
1039ae6642
@@ -3764,6 +3764,14 @@ static inline QDF_STATUS dp_pdev_attach_wifi3(struct cdp_soc_t *txrx_soc,
|
||||
pdev->lmac_id = wlan_cfg_get_hw_mac_idx(soc->wlan_cfg_ctx, pdev_id);
|
||||
soc->pdev_count++;
|
||||
|
||||
pdev->target_pdev_id =
|
||||
dp_calculate_target_pdev_id_from_host_pdev_id(soc, pdev_id);
|
||||
|
||||
if (soc->preferred_hw_mode == WMI_HOST_HW_MODE_2G_PHYB &&
|
||||
pdev->lmac_id == PHYB_2G_LMAC_ID) {
|
||||
pdev->target_pdev_id = PHYB_2G_TARGET_PDEV_ID;
|
||||
}
|
||||
|
||||
TAILQ_INIT(&pdev->vdev_list);
|
||||
qdf_spinlock_create(&pdev->vdev_list_lock);
|
||||
pdev->vdev_count = 0;
|
||||
@@ -8616,7 +8624,9 @@ dp_set_psoc_param(struct cdp_soc_t *cdp_soc,
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO,
|
||||
FL("nss-wifi<0> nss config is enabled"));
|
||||
break;
|
||||
|
||||
case CDP_SET_PREFERRED_HW_MODE:
|
||||
soc->preferred_hw_mode = val.cdp_psoc_param_preferred_hw_mode;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user