qcacmn: Call ch avoid register/unregister callbacks

tx_ops->register_ch_avoid_event_handler and
tx_ops->unregister_ch_avoid_event_handler are set but never called.
Call register_ch_avoid_event_handler when regulatory_psoc_open, call
unregister_ch_avoid_event_handler when regulatory_psoc_close.

Change-Id: I663f3020b78773560d6991dc70da9dcdd6c218a9
CRs-Fixed: 2163619
This commit is contained in:
Will Huang
2017-12-26 12:46:43 +08:00
committed by snandini
parent 3ce87c3e5f
commit e6da44ea06

View File

@@ -359,6 +359,8 @@ QDF_STATUS regulatory_psoc_open(struct wlan_objmgr_psoc *psoc)
tx_ops->register_master_handler(psoc, NULL); tx_ops->register_master_handler(psoc, NULL);
if (tx_ops->register_11d_new_cc_handler) if (tx_ops->register_11d_new_cc_handler)
tx_ops->register_11d_new_cc_handler(psoc, NULL); tx_ops->register_11d_new_cc_handler(psoc, NULL);
if (tx_ops->register_ch_avoid_event_handler)
tx_ops->register_ch_avoid_event_handler(psoc, NULL);
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }
@@ -372,6 +374,8 @@ QDF_STATUS regulatory_psoc_close(struct wlan_objmgr_psoc *psoc)
tx_ops->unregister_11d_new_cc_handler(psoc, NULL); tx_ops->unregister_11d_new_cc_handler(psoc, NULL);
if (tx_ops->unregister_master_handler) if (tx_ops->unregister_master_handler)
tx_ops->unregister_master_handler(psoc, NULL); tx_ops->unregister_master_handler(psoc, NULL);
if (tx_ops->unregister_ch_avoid_event_handler)
tx_ops->unregister_ch_avoid_event_handler(psoc, NULL);
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }