From bf4490a41da07112f3a35154195fe8da8b00bbd3 Mon Sep 17 00:00:00 2001 From: Lincoln Tran Date: Thu, 9 Apr 2020 16:42:13 -0700 Subject: [PATCH] qcacmn: Remove min check for channel list Remove the min check for channel list in PNO scan as there is no limitation in FW for number of channel. The min check is truncating the 6G channels. Change-Id: Ic12a82e6b1f9d22c6136abc01125f0465fe821c9 CRs-fixed: 2661087 --- wmi/src/wmi_unified_tlv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index b788580169b0..cf690f14b67d 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -4836,8 +4836,7 @@ static QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle, WMI_TLV_HDR_SIZE + WMI_TLV_HDR_SIZE + WMI_TLV_HDR_SIZE + WMI_TLV_HDR_SIZE + WMI_TLV_HDR_SIZE; - len += sizeof(uint32_t) * QDF_MIN(pno->networks_list[0].channel_cnt, - WMI_NLO_MAX_CHAN); + len += sizeof(uint32_t) * pno->networks_list[0].channel_cnt; len += sizeof(nlo_configured_parameters) * QDF_MIN(pno->networks_cnt, WMI_NLO_MAX_SSIDS); len += sizeof(nlo_channel_prediction_cfg); @@ -4924,8 +4923,7 @@ static QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle, buf_ptr += cmd->no_of_ssids * sizeof(nlo_configured_parameters); /* Copy channel info */ - cmd->num_of_channels = QDF_MIN(pno->networks_list[0].channel_cnt, - WMI_NLO_MAX_CHAN); + cmd->num_of_channels = pno->networks_list[0].channel_cnt; WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_ARRAY_UINT32, (cmd->num_of_channels * sizeof(uint32_t))); buf_ptr += WMI_TLV_HDR_SIZE;