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:

committed by
Gerrit - the friendly Code Review server

부모
3abee06de0
커밋
56fb3412f4
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user