Merge "qcacmn: Add reg API to check for enable channel state"
This commit is contained in:

gecommit door
Gerrit - the friendly Code Review server

commit
99bbed9b55
@@ -5863,6 +5863,17 @@ bool reg_is_disable_in_secondary_list_for_freq(struct wlan_objmgr_pdev *pdev,
|
||||
|
||||
return ch_state == CHANNEL_STATE_DISABLE;
|
||||
}
|
||||
|
||||
bool reg_is_enable_in_secondary_list_for_freq(struct wlan_objmgr_pdev *pdev,
|
||||
qdf_freq_t freq)
|
||||
{
|
||||
enum channel_state ch_state;
|
||||
|
||||
ch_state = reg_get_channel_state_from_secondary_list_for_freq(pdev,
|
||||
freq);
|
||||
|
||||
return ch_state == CHANNEL_STATE_ENABLE;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool reg_is_passive_for_freq(struct wlan_objmgr_pdev *pdev, qdf_freq_t freq)
|
||||
|
@@ -1249,6 +1249,17 @@ bool reg_is_disable_for_pwrmode(struct wlan_objmgr_pdev *pdev, qdf_freq_t freq,
|
||||
*/
|
||||
bool reg_is_disable_in_secondary_list_for_freq(struct wlan_objmgr_pdev *pdev,
|
||||
qdf_freq_t freq);
|
||||
|
||||
/**
|
||||
* reg_is_enable_in_secondary_list_for_freq() - Check if the given channel
|
||||
* frequency is in enable state
|
||||
* @pdev: Pointer to pdev
|
||||
* @freq: Channel frequency
|
||||
*
|
||||
* Return: True if channel state is enabled, else false
|
||||
*/
|
||||
bool reg_is_enable_in_secondary_list_for_freq(struct wlan_objmgr_pdev *pdev,
|
||||
qdf_freq_t freq);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@@ -1594,6 +1594,18 @@ bool wlan_reg_is_disable_in_secondary_list_for_freq(
|
||||
struct wlan_objmgr_pdev *pdev,
|
||||
qdf_freq_t freq);
|
||||
|
||||
/**
|
||||
* wlan_reg_is_enable_in_secondary_list_for_freq() - Checks in the secondary
|
||||
* channel list to see if chan state is enabled
|
||||
* @pdev: pdev ptr
|
||||
* @freq: Channel center frequency
|
||||
*
|
||||
* Return: true or false
|
||||
*/
|
||||
bool wlan_reg_is_enable_in_secondary_list_for_freq(
|
||||
struct wlan_objmgr_pdev *pdev,
|
||||
qdf_freq_t freq);
|
||||
|
||||
/**
|
||||
* wlan_reg_is_dfs_in_secondary_list_for_freq() - hecks the channel state for
|
||||
* DFS from the secondary channel list
|
||||
|
@@ -1078,6 +1078,13 @@ bool wlan_reg_is_disable_in_secondary_list_for_freq(
|
||||
return reg_is_disable_in_secondary_list_for_freq(pdev, freq);
|
||||
}
|
||||
|
||||
bool wlan_reg_is_enable_in_secondary_list_for_freq(
|
||||
struct wlan_objmgr_pdev *pdev,
|
||||
qdf_freq_t freq)
|
||||
{
|
||||
return reg_is_enable_in_secondary_list_for_freq(pdev, freq);
|
||||
}
|
||||
|
||||
bool wlan_reg_is_dfs_in_secondary_list_for_freq(struct wlan_objmgr_pdev *pdev,
|
||||
qdf_freq_t freq)
|
||||
{
|
||||
|
Verwijs in nieuw issue
Block a user