mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacmn: Add NULL check for regulatory tx ops
Add NULL check for regulatory tx ops Change-Id: Ib2cc4c795948111c9405ae14de66ad1ab5ccbdd8
This commit is contained in:
parent
0e5c6c7ec7
commit
922d5a4dbf
1 changed files with 4 additions and 2 deletions
|
|
@ -347,7 +347,8 @@ QDF_STATUS regulatory_psoc_open(struct wlan_objmgr_psoc *psoc)
|
|||
struct wlan_lmac_if_reg_tx_ops *tx_ops;
|
||||
|
||||
tx_ops = get_reg_psoc_tx_ops(psoc);
|
||||
tx_ops->register_master_handler(psoc, NULL);
|
||||
if (tx_ops->register_master_handler)
|
||||
tx_ops->register_master_handler(psoc, NULL);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
};
|
||||
|
|
@ -357,7 +358,8 @@ QDF_STATUS regulatory_psoc_close(struct wlan_objmgr_psoc *psoc)
|
|||
struct wlan_lmac_if_reg_tx_ops *tx_ops;
|
||||
|
||||
tx_ops = get_reg_psoc_tx_ops(psoc);
|
||||
tx_ops->unregister_master_handler(psoc, NULL);
|
||||
if (tx_ops->unregister_master_handler)
|
||||
tx_ops->unregister_master_handler(psoc, NULL);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue