فهرست منبع

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

While finding RCAC frequency, if you're current bandwidth is 165MHz
(pine 80p80MHz), add 80p80_enabled flag for Rolling CAC random
channel selection, which allows the channel selection logic to
fallback to 160MHz bandwidth and find a channel.

CRs-Fixed: 2738917
Change-Id: I70add1b2a3c3252b1bd6bf99cffc9b9727be4f56
Vignesh Mohan 5 سال پیش
والد
کامیت
8b5ce9a790
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

@@ -5273,6 +5273,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);