mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacmn: Allow zero channels list to send to fw for RSO
Host send number of channels = 0 and channel list type = WMI_CHANNEL_LIST_STATIC in RSO command to firmware to clear static channel list for ROAM SCAN in firmware. Hence, at WMI layer check for chan_count is removed and channel list type mapping is done irrespective of chan_count. Change-Id: Ia3dded0d58e32570d3dd5f7193410909ecef0cc4 CRs-Fixed: 2579748
This commit is contained in:
parent
918456b6c3
commit
fac1d4e171
1 changed files with 1 additions and 6 deletions
|
|
@ -1882,11 +1882,6 @@ static QDF_STATUS send_roam_scan_offload_chan_list_cmd_tlv(wmi_unified_t wmi_han
|
|||
wmi_roam_chan_list_fixed_param *chan_list_fp;
|
||||
uint32_t *roam_chan_list_array;
|
||||
|
||||
if (chan_count == 0) {
|
||||
WMI_LOGD("%s : invalid number of channels %d", __func__,
|
||||
chan_count);
|
||||
return QDF_STATUS_E_EMPTY;
|
||||
}
|
||||
/* Channel list is a table of 2 TLV's */
|
||||
list_tlv_len = WMI_TLV_HDR_SIZE + chan_count * sizeof(uint32_t);
|
||||
len = sizeof(wmi_roam_chan_list_fixed_param) + list_tlv_len;
|
||||
|
|
@ -1903,7 +1898,7 @@ static QDF_STATUS send_roam_scan_offload_chan_list_cmd_tlv(wmi_unified_t wmi_han
|
|||
(wmi_roam_chan_list_fixed_param));
|
||||
chan_list_fp->vdev_id = vdev_id;
|
||||
chan_list_fp->num_chan = chan_count;
|
||||
if (chan_count > 0 && list_type == WMI_CHANNEL_LIST_STATIC) {
|
||||
if (list_type == WMI_CHANNEL_LIST_STATIC) {
|
||||
/* external app is controlling channel list */
|
||||
chan_list_fp->chan_list_type =
|
||||
WMI_ROAM_SCAN_CHAN_LIST_TYPE_STATIC;
|
||||
|
|
|
|||
Loading…
Reference in a new issue