Преглед изворни кода

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
Shashikala Prabhu пре 7 година
родитељ
комит
ae49c692cd
1 измењених фајлова са 7 додато и 3 уклоњено
  1. 7 3
      wmi/src/wmi_unified_tlv.c

+ 7 - 3
wmi/src/wmi_unified_tlv.c

@@ -3000,9 +3000,13 @@ static QDF_STATUS send_scan_chan_list_cmd_tlv(wmi_unified_t wmi_handle,
 		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,