qcacld-3.0: Move pre_cac start code to pre_cac component
Move pre_cac start code flow from hdd to pre_cac component. Change-Id: Ia3bd7521bff9571dee18dbc20b28d08b76128944 CRs-Fixed: 3199948
This commit is contained in:

کامیت شده توسط
Madan Koyyalamudi

والد
2de118fa97
کامیت
71fc4f3fd4
@@ -856,6 +856,11 @@ QDF_STATUS wlan_sap_update_next_channel(struct sap_context *sap_ctx,
|
||||
enum phy_ch_width chan_bw);
|
||||
|
||||
#if defined(FEATURE_SAP_COND_CHAN_SWITCH) && defined(PRE_CAC_SUPPORT)
|
||||
/*
|
||||
* Code under PRE_CAC_COMP will be cleaned up
|
||||
* once pre cac component is done
|
||||
*/
|
||||
#ifndef PRE_CAC_COMP
|
||||
/**
|
||||
* wlan_sap_set_pre_cac_status() - Set the pre cac status
|
||||
* @sap_ctx: SAP context
|
||||
@@ -867,6 +872,7 @@ QDF_STATUS wlan_sap_update_next_channel(struct sap_context *sap_ctx,
|
||||
*/
|
||||
QDF_STATUS wlan_sap_set_pre_cac_status(struct sap_context *sap_ctx,
|
||||
bool status);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wlan_sap_set_chan_freq_before_pre_cac() - Save the channel before pre cac
|
||||
@@ -881,11 +887,17 @@ QDF_STATUS
|
||||
wlan_sap_set_chan_freq_before_pre_cac(struct sap_context *sap_ctx,
|
||||
qdf_freq_t freq_before_pre_cac);
|
||||
#else
|
||||
/*
|
||||
* Code under PRE_CAC_COMP will be cleaned up
|
||||
* once pre cac component is done
|
||||
*/
|
||||
#ifndef PRE_CAC_COMP
|
||||
static inline QDF_STATUS
|
||||
wlan_sap_set_pre_cac_status(struct sap_context *sap_ctx, bool status)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_sap_set_chan_freq_before_pre_cac(struct sap_context *sap_ctx,
|
||||
@@ -908,6 +920,11 @@ wlan_sap_set_chan_freq_before_pre_cac(struct sap_context *sap_ctx,
|
||||
QDF_STATUS wlan_sap_set_pre_cac_complete_status(struct sap_context *sap_ctx,
|
||||
bool status);
|
||||
|
||||
/*
|
||||
* Code under PRE_CAC_COMP will be cleaned up
|
||||
* once pre cac component is done
|
||||
*/
|
||||
#ifndef PRE_CAC_COMP
|
||||
/**
|
||||
* wlan_sap_is_pre_cac_context() - checks if @context is for a pre-cac adapter
|
||||
* @context: the SAP context to check
|
||||
@@ -918,6 +935,7 @@ bool wlan_sap_is_pre_cac_context(struct sap_context *context);
|
||||
|
||||
bool wlan_sap_is_pre_cac_active(mac_handle_t handle);
|
||||
QDF_STATUS wlan_sap_get_pre_cac_vdev_id(mac_handle_t handle, uint8_t *vdev_id);
|
||||
#endif /* PRE_CAC_COMP */
|
||||
#else
|
||||
static inline QDF_STATUS
|
||||
wlan_sap_set_pre_cac_complete_status(struct sap_context *sap_ctx,
|
||||
@@ -926,6 +944,11 @@ wlan_sap_set_pre_cac_complete_status(struct sap_context *sap_ctx,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* Code under PRE_CAC_COMP will be cleaned up
|
||||
* once pre cac component is done
|
||||
*/
|
||||
#ifndef PRE_CAC_COMP
|
||||
static inline bool
|
||||
wlan_sap_is_pre_cac_context(struct sap_context *context)
|
||||
{
|
||||
@@ -937,6 +960,7 @@ static inline bool wlan_sap_is_pre_cac_active(mac_handle_t handle)
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
|
||||
/**
|
||||
|
مرجع در شماره جدید
Block a user