mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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
This commit is contained in:
parent
42f305e423
commit
9afaef18bf
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue