qcacld-3.0: Fix channel avoid failure for CONFIG_CNSS_UTILS disabled
Many platforms doesn't enabled CONFIG_CNSS_UTILS, while pld_set_wlan_unsafe_channel depends on it, pld_set_wlan_unsafe_channel and pld_get_wlan_unsafe_channel need return 0 instead of -EINVAL, or have side effect on channel avoid feature. Change-Id: I0967d754314d6fb7f8a289ada3bbcbae2c8b3b5e CRs-Fixed: 2752409
This commit is contained in:

committed by
snandini

orang tua
95c6545926
melakukan
e33d286340
@@ -581,13 +581,15 @@ static inline int pld_set_wlan_unsafe_channel(struct device *dev,
|
||||
u16 *unsafe_ch_list,
|
||||
u16 ch_count)
|
||||
{
|
||||
return -EINVAL;
|
||||
return 0;
|
||||
}
|
||||
static inline int pld_get_wlan_unsafe_channel(struct device *dev,
|
||||
u16 *unsafe_ch_list,
|
||||
u16 *ch_count, u16 buf_len)
|
||||
{
|
||||
return -EINVAL;
|
||||
*ch_count = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
static inline int pld_wlan_set_dfs_nol(struct device *dev,
|
||||
void *info, u16 info_len)
|
||||
|
Reference in New Issue
Block a user