qcacmn: Set half/quarter rate flags in the scan channel list
Set half/quarter rate flags in the scan channel list and send it to FW.
Change-Id: Ia63a1f360337bdb4ba054892c0c3dfe773b97f11
CRs-Fixed: 2212700
diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c
index bbb7a56..1b00360 100644
--- a/wmi_unified_tlv.c
+++ b/wmi_unified_tlv.c
@@ -3000,9 +3000,13 @@
WMI_SET_CHANNEL_MODE(chan_info,
tchan_info->phy_mode);
- /* Add tchan_info->half_rate and tchan_info->quarter_rate later
- * after FW support
- */
+ if (tchan_info->half_rate)
+ WMI_SET_CHANNEL_FLAG(chan_info,
+ WMI_CHAN_FLAG_HALF_RATE);
+
+ if (tchan_info->quarter_rate)
+ WMI_SET_CHANNEL_FLAG(chan_info,
+ WMI_CHAN_FLAG_QUARTER_RATE);
/* also fill in power information */
WMI_SET_CHANNEL_MIN_POWER(chan_info,