qcacmn: Fix function parameter type conflict issue

Parameter freq type has a conflict in reg_is_dsrc_freq(qdf_freq_t freq)
and reg_is_dsrc_freq(uint16_t freq) functions.

Change the type to qdf_freq_t in these functions.

Change-Id: I4c348778a7cb2fd588799332241701357de90422
CRs-Fixed: 2595642
This commit is contained in:
Yu Ouyang 2020-01-02 14:38:32 +08:00 • committed by nshrivas
commit 78100a4cfe

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
*
*
* Permission to use, copy, modify, and/or distribute this software for
@ -516,7 +516,7 @@ bool reg_get_fcc_constraint(struct wlan_objmgr_pdev *pdev, uint32_t freq)
* Return: true or false
*/
#ifdef CONFIG_CHAN_FREQ_API
bool reg_is_dsrc_freq(uint16_t freq);
bool reg_is_dsrc_freq(qdf_freq_t freq);
#endif /* CONFIG_CHAN_FREQ_API*/
#ifdef CONFIG_CHAN_NUM_API
@ -567,7 +567,7 @@ static inline bool reg_is_dsrc_chan(struct wlan_objmgr_pdev *pdev,
return false;
}
static inline bool reg_is_dsrc_freq(uint16_t freq)
static inline bool reg_is_dsrc_freq(qdf_freq_t freq)
{
return false;
}
@ -612,7 +612,7 @@ static inline bool reg_is_dsrc_chan(struct wlan_objmgr_pdev *pdev,
return false;
}
static inline bool reg_is_dsrc_freq(uint16_t freq)
static inline bool reg_is_dsrc_freq(qdf_freq_t freq)
{
return false;
}