qca-wifi: CFR: Fix NULL check before invoking DBR unregister handler

In HKV2/Cypress, check if DBR unregister handler is non-null before
invoking the same.

Change-Id: If22eac6e0005b9aa8887888b8070c884ec52d40f
This commit is contained in:
Padma Raghunathan
2020-02-02 16:30:23 +05:30
committed by Gerrit - the friendly Code Review server
부모 3abee06de0
커밋 56fb3412f4
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@@ -988,7 +988,7 @@ target_if_unregister_to_dbr_enh(struct wlan_objmgr_pdev *pdev)
psoc = wlan_pdev_get_psoc(pdev);
dbr_tx_ops = &psoc->soc_cb.tx_ops.dbr_tx_ops;
if (dbr_tx_ops->direct_buf_rx_module_register) {
if (dbr_tx_ops->direct_buf_rx_module_unregister) {
return dbr_tx_ops->direct_buf_rx_module_unregister
(pdev, DBR_MODULE_CFR);
}

파일 보기

@@ -607,7 +607,7 @@ target_if_unregister_to_dbr(struct wlan_objmgr_pdev *pdev)
psoc = wlan_pdev_get_psoc(pdev);
dbr_tx_ops = &psoc->soc_cb.tx_ops.dbr_tx_ops;
if (dbr_tx_ops->direct_buf_rx_module_register) {
if (dbr_tx_ops->direct_buf_rx_module_unregister) {
return dbr_tx_ops->direct_buf_rx_module_unregister
(pdev, DBR_MODULE_CFR);
}