浏览代码

Merge "qca-wifi: Add 80p80_enabled flag while finding RCAC channel"

Linux Build Service Account 5 年之前
父节点
当前提交
039426874a
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      umac/dfs/core/src/misc/dfs_zero_cac.c

+ 7 - 0
umac/dfs/core/src/misc/dfs_zero_cac.c

@@ -3573,6 +3573,13 @@ static qdf_freq_t dfs_find_rcac_chan(struct wlan_dfs *dfs,
 		 */
 		uint16_t flags = DFS_RANDOM_CH_FLAG_NO_CURR_OPE_CH;
 
+		/* Add Restricted 80p80 enabled bit to the flag so that
+		 * random channel selection will fallback to 160MHz and pick
+		 * 160MHz channels if the current operating BW is 165MHz.
+		 */
+		if (WLAN_IS_CHAN_MODE_165(dfs, dfs->dfs_curchan))
+			flags |= DFS_RANDOM_CH_FLAG_RESTRICTED_80P80_ENABLED;
+
 		dfs_fill_des_rcac_chan_params(dfs,
 					      &nxt_chan_params,
 					      curchan_chwidth);