qcacmn: Assign soc to dp_pdev soon after allocation

Assign soc to dp_pdev soon after allocation, since the
soc pointer is required during deinit if pdev attach fails.

Change-Id: I87789deb82efe9f554b3310a904dd340c5eb9f7a
CRs-fixed: 2638378
Este commit está contenido en:
Pavankumar Nandeshwar
2020-03-11 11:08:11 +05:30
cometido por nshrivas
padre 42f305e423
commit 9afaef18bf

Ver fichero

@@ -3622,6 +3622,8 @@ static inline QDF_STATUS dp_pdev_attach_wifi3(struct cdp_soc_t *txrx_soc,
ret = QDF_STATUS_E_NOMEM;
goto fail0;
}
pdev->soc = soc;
pdev->pdev_id = pdev_id;
pdev->filter = dp_mon_filter_alloc(pdev);
if (!pdev->filter) {
@@ -3669,8 +3671,6 @@ static inline QDF_STATUS dp_pdev_attach_wifi3(struct cdp_soc_t *txrx_soc,
wlan_cfg_set_dp_pdev_nss_enabled(pdev->wlan_cfg_ctx,
(nss_cfg & (1 << pdev_id)));
pdev->soc = soc;
pdev->pdev_id = pdev_id;
soc->pdev_list[pdev_id] = pdev;
pdev->lmac_id = wlan_cfg_get_hw_mac_idx(soc->wlan_cfg_ctx, pdev_id);