浏览代码

qcacmn: Change DFS agile flag

Agile flag WMI_CHAN_FLAG_AGILE_MODE added. When this flag is set,
the primary VHT80 will not be affected when channel change is done.

Change-Id: Ie6bce12ec955c0c8a79246dda57092808611803d
CRs-Fixed: 1072504
Nandha Kishore Easwaran 8 年之前
父节点
当前提交
b408ac4481
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 3 1
      wmi/inc/wmi_unified_param.h
  2. 3 0
      wmi/src/wmi_unified_non_tlv.c

+ 3 - 1
wmi/inc/wmi_unified_param.h

@@ -379,6 +379,7 @@ struct vdev_delete_params {
  * @is_chan_passive: is this passive channel
  * @allow_ht: HT allowed in chan
  * @allow_vht: VHT allowed on chan
+ * @dfs_set_agile: is agile mode
  * @phy_mode: phymode (vht80 or ht40 or ...)
  * @cfreq1: centre frequency on primary
  * @cfreq2: centre frequency on secondary
@@ -399,7 +400,8 @@ struct channel_param {
 		dfs_set_cfreq2:1,
 		is_chan_passive:1,
 		allow_ht:1,
-		allow_vht:1;
+		allow_vht:1,
+		dfs_set_agile:1;
 	uint32_t phy_mode;
 	uint32_t cfreq1;
 	uint32_t cfreq2;

+ 3 - 0
wmi/src/wmi_unified_non_tlv.c

@@ -193,6 +193,9 @@ QDF_STATUS send_vdev_start_cmd_non_tlv(wmi_unified_t wmi,
 	if (param->channel.dfs_set_cfreq2)
 		WMI_SET_CHANNEL_FLAG(&cmd->chan, WMI_CHAN_FLAG_DFS_CFREQ2);
 
+	if (param->channel.dfs_set_agile)
+		WMI_SET_CHANNEL_FLAG(&cmd->chan, WMI_CHAN_FLAG_AGILE_MODE);
+
 	if (param->channel.half_rate)
 		WMI_SET_CHANNEL_FLAG(&cmd->chan, WMI_CHAN_FLAG_HALF);