|
@@ -1199,7 +1199,7 @@ QDF_STATUS tgt_mc_cp_stats_inc_wake_lock_stats(struct wlan_objmgr_psoc *psoc,
|
|
struct wlan_lmac_if_cp_stats_tx_ops *tx_ops;
|
|
struct wlan_lmac_if_cp_stats_tx_ops *tx_ops;
|
|
|
|
|
|
tx_ops = target_if_cp_stats_get_tx_ops(psoc);
|
|
tx_ops = target_if_cp_stats_get_tx_ops(psoc);
|
|
- if (!tx_ops)
|
|
|
|
|
|
+ if (!tx_ops || !tx_ops->inc_wake_lock_stats)
|
|
return QDF_STATUS_E_NULL_VALUE;
|
|
return QDF_STATUS_E_NULL_VALUE;
|
|
|
|
|
|
tx_ops->inc_wake_lock_stats(reason, stats, unspecified_wake_count);
|
|
tx_ops->inc_wake_lock_stats(reason, stats, unspecified_wake_count);
|