qcacmn: Add support to get min and max bw of chan enum
Add support to get min and max band width of provided channel enum, so that configured bandwidth can be validated whether it lies in the range of bandwidth or not. Change-Id: I765b4e8013d021eaca41b37789d1ef3f1d57fa7d CRs-Fixed: 3402928
This commit is contained in:

gecommit door
Madan Koyyalamudi

bovenliggende
94461d8894
commit
7453254a0c
@@ -1422,6 +1422,21 @@ bool wlan_reg_is_same_band_freqs(qdf_freq_t freq1, qdf_freq_t freq2);
|
||||
*/
|
||||
enum channel_enum wlan_reg_get_chan_enum_for_freq(qdf_freq_t freq);
|
||||
|
||||
/**
|
||||
* wlan_reg_get_min_max_bw_for_chan_index() - To get min and max BW supported
|
||||
* by channel enum
|
||||
* @pdev: pointer to pdev
|
||||
* @chn_idx: enum channel_enum
|
||||
* @min bw: min bw
|
||||
* @max bw: max bw
|
||||
*
|
||||
* Return: SUCCESS/FAILURE
|
||||
*/
|
||||
QDF_STATUS
|
||||
wlan_reg_get_min_max_bw_for_chan_index(struct wlan_objmgr_pdev *pdev,
|
||||
enum channel_enum chan_idx,
|
||||
uint16_t *min_bw, uint16_t *max_bw);
|
||||
|
||||
/**
|
||||
* wlan_reg_is_freq_present_in_cur_chan_list() - Check if channel is present
|
||||
* in the current channel list
|
||||
|
@@ -1077,6 +1077,15 @@ enum channel_enum wlan_reg_get_chan_enum_for_freq(qdf_freq_t freq)
|
||||
return reg_get_chan_enum_for_freq(freq);
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
wlan_reg_get_min_max_bw_for_chan_index(struct wlan_objmgr_pdev *pdev,
|
||||
enum channel_enum chan_idx,
|
||||
uint16_t *min_bw, uint16_t *max_bw)
|
||||
{
|
||||
return reg_get_min_max_bw_on_cur_chan_list(pdev,
|
||||
chan_idx, min_bw, max_bw);
|
||||
}
|
||||
|
||||
bool wlan_reg_is_freq_present_in_cur_chan_list(struct wlan_objmgr_pdev *pdev,
|
||||
qdf_freq_t freq)
|
||||
{
|
||||
|
Verwijs in nieuw issue
Block a user