qcacmn: Remove reg_get_channel_list_with_power

reg_get_channel_list_with_power function is a redundant function as its
counterpart reg_get_channel_list_with_power_for freq have the same
functionality. Also the two functions have almost the same implementation.
Therefore removing the function reg_get_channel_list_with_power.

Also added the assignment of the variable "chan_num" to the function
reg_get_channel_list_with_power_for_freq, as the assignment was missing.

CRs-Fixed: 2738838
Change-Id: Ifd2fd795cacd89989e1755f3b8fd56ccd7d5b84f
This commit is contained in:
Vijay Krishnan
2020-08-20 15:30:57 +05:30
committato da snandini
parent 8b47a84559
commit dcb1efdcce
5 ha cambiato i file con 3 aggiunte e 80 eliminazioni

Vedi File

@@ -501,8 +501,8 @@ static void wifi_pos_pdev_iterator(struct wlan_objmgr_psoc *psoc,
return;
}
ch_info = (struct channel_power *)chan_list->chan_info;
status = wlan_reg_get_channel_list_with_power(pdev, ch_info,
&num_channels);
status = wlan_reg_get_channel_list_with_power_for_freq(pdev, ch_info,
&num_channels);
if (QDF_IS_STATUS_ERROR(status)) {
wifi_pos_err("Failed to get valid channel list");