qcacmn: Move reg_get_6g_ap_master_chan_list out of AFC flag
Currently api wlan_reg_get_6g_ap_master_chan_list is declared and defined under CONFIG_AFC_SUPPORT feature flag, since this is a generic API and can be used by other functionalities as well. With this change move wlan_reg_get_6g_ap_master_chan_list api out of CONFIG_AFC_SUPPORT feature flag. Change-Id: Ifa7b27895b4660bbf248fc2827472ba50c9df9a4 CRs-Fixed: 3090281
Cette révision appartient à :

révisé par
Madan Koyyalamudi

Parent
fd747f6685
révision
2cb0e9b21e
@@ -191,6 +191,20 @@ static inline bool wlan_reg_is_range_overlap_6g(qdf_freq_t low_freq,
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wlan_reg_get_6g_ap_master_chan_list() - provide the appropriate ap master
|
||||
* channel list
|
||||
* @pdev: pdev pointer
|
||||
* @ap_pwr_type: The ap power type (LPI/VLP/SP)
|
||||
* @chan_list: channel list pointer
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS wlan_reg_get_6g_ap_master_chan_list(
|
||||
struct wlan_objmgr_pdev *pdev,
|
||||
enum reg_6g_ap_type ap_pwr_type,
|
||||
struct regulatory_channel *chan_list);
|
||||
|
||||
/**
|
||||
* wlan_reg_is_6ghz_psc_chan_freq() - Check if the given 6GHz channel frequency
|
||||
* is preferred scanning channel frequency.
|
||||
@@ -307,6 +321,14 @@ wlan_reg_get_max_txpower_for_6g_tpe(struct wlan_objmgr_pdev *pdev,
|
||||
{
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_reg_get_6g_ap_master_chan_list(struct wlan_objmgr_pdev *pdev,
|
||||
enum reg_6g_ap_type ap_pwr_type,
|
||||
struct regulatory_channel *chan_list)
|
||||
{
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
#endif /* CONFIG_BAND_6GHZ */
|
||||
|
||||
/**
|
||||
@@ -543,19 +565,6 @@ QDF_STATUS wlan_reg_get_secondary_current_chan_list(
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_AFC_SUPPORT) && defined(CONFIG_BAND_6GHZ)
|
||||
/**
|
||||
* wlan_reg_get_6g_ap_master_chan_list() - provide the appropriate ap master
|
||||
* channel list
|
||||
* @pdev: pdev pointer
|
||||
* @ap_pwr_type: The ap power type (LPI/VLP/SP)
|
||||
* @chan_list: channel list pointer
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS wlan_reg_get_6g_ap_master_chan_list(struct wlan_objmgr_pdev *pdev,
|
||||
enum reg_6g_ap_type ap_pwr_type,
|
||||
struct regulatory_channel *chan_list);
|
||||
|
||||
/**
|
||||
* wlan_reg_get_6g_afc_chan_list() - provide the pdev afc channel list
|
||||
* @pdev: pdev pointer
|
||||
|
@@ -132,15 +132,6 @@ QDF_STATUS wlan_reg_get_secondary_current_chan_list(
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_AFC_SUPPORT) && defined(CONFIG_BAND_6GHZ)
|
||||
QDF_STATUS wlan_reg_get_6g_ap_master_chan_list(struct wlan_objmgr_pdev *pdev,
|
||||
enum reg_6g_ap_type ap_pwr_type,
|
||||
struct regulatory_channel *chan_list)
|
||||
{
|
||||
return reg_get_6g_ap_master_chan_list(pdev, ap_pwr_type, chan_list);
|
||||
}
|
||||
|
||||
qdf_export_symbol(wlan_reg_get_6g_ap_master_chan_list);
|
||||
|
||||
QDF_STATUS wlan_reg_get_6g_afc_chan_list(struct wlan_objmgr_pdev *pdev,
|
||||
struct regulatory_channel *chan_list)
|
||||
{
|
||||
@@ -399,6 +390,16 @@ regulatory_assign_unregister_master_ext_handler(struct wlan_objmgr_psoc *psoc,
|
||||
tx_ops->unregister_master_ext_handler(psoc, NULL);
|
||||
}
|
||||
|
||||
QDF_STATUS wlan_reg_get_6g_ap_master_chan_list(
|
||||
struct wlan_objmgr_pdev *pdev,
|
||||
enum reg_6g_ap_type ap_pwr_type,
|
||||
struct regulatory_channel *chan_list)
|
||||
{
|
||||
return reg_get_6g_ap_master_chan_list(pdev, ap_pwr_type, chan_list);
|
||||
}
|
||||
|
||||
qdf_export_symbol(wlan_reg_get_6g_ap_master_chan_list);
|
||||
|
||||
#ifdef CONFIG_AFC_SUPPORT
|
||||
static void regulatory_assign_register_afc_event_handler(
|
||||
struct wlan_objmgr_psoc *psoc,
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur