qcacmn: Expose freq validation API

Create a wrapper for the reg_is_freq_present_in_cur_chan_list API so
other modules can invoke it.

Change-Id: I0e21b15f1e08bb4301329b6b1a3c3c40edc09060
CRs-fixed: 2884768
Tento commit je obsažen v:
Lincoln Tran
2021-02-23 17:32:58 -08:00
odevzdal snandini
rodič 8d4b739df0
revize 6118d488dd
2 změnil soubory, kde provedl 17 přidání a 0 odebrání

Zobrazit soubor

@@ -1169,6 +1169,17 @@ 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_is_freq_present_in_cur_chan_list() - Check if channel is present
* in the current channel list
* @pdev: pdev pointer
* @freq: Channel center frequency
*
* Return: true if channel is present in current channel list
*/
bool wlan_reg_is_freq_present_in_cur_chan_list(struct wlan_objmgr_pdev *pdev,
qdf_freq_t freq);
/**
* wlan_reg_update_nol_history_ch_for_freq() - Set nol-history flag for the
* channels in the list.

Zobrazit soubor

@@ -993,6 +993,12 @@ enum channel_enum wlan_reg_get_chan_enum_for_freq(qdf_freq_t freq)
return reg_get_chan_enum_for_freq(freq);
}
bool wlan_reg_is_freq_present_in_cur_chan_list(struct wlan_objmgr_pdev *pdev,
qdf_freq_t freq)
{
return reg_is_freq_present_in_cur_chan_list(pdev, freq);
}
bool wlan_reg_is_etsi13_srd_chan_for_freq(struct wlan_objmgr_pdev *pdev,
qdf_freq_t freq)
{