From fac1d4e171a0bed983953fdab198d76d1bd77249 Mon Sep 17 00:00:00 2001 From: Abhishek Ambure Date: Wed, 4 Dec 2019 17:34:31 +0530 Subject: [PATCH] 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 --- wmi/src/wmi_unified_roam_tlv.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wmi/src/wmi_unified_roam_tlv.c b/wmi/src/wmi_unified_roam_tlv.c index 63589af09491..7413fa54c7ee 100644 --- a/wmi/src/wmi_unified_roam_tlv.c +++ b/wmi/src/wmi_unified_roam_tlv.c @@ -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;