浏览代码

qcacld-3.0: Update cktn BW from bcn if bss peer BW is incorrect

If session BW is 160 MHz or higher and peer BW is reduced below
160 MHz in assoc response, STA resets HE 160 MHz MCS rates to
0xffff that results in FW assert. To avoid STA crash, add a
check to get reduced peer BW from beacon instead of allowing
160 MHz association.

Change-Id: Ifa2c45e6354129fdc2d3cc50464f9d2dd7edae2a
CRs-Fixed: 3289443
Gururaj Pandurangi 2 年之前
父节点
当前提交
6442513876
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      core/mac/src/pe/lim/lim_assoc_utils.c

+ 7 - 0
core/mac/src/pe/lim/lim_assoc_utils.c

@@ -1595,6 +1595,13 @@ static bool lim_check_valid_mcs_for_nss(struct pe_session *session,
 		mcs_count--;
 	} while (mcs_count);
 
+	if ((session->ch_width == CH_WIDTH_160MHZ ||
+	     lim_is_session_chwidth_320mhz(session)) &&
+	     !he_caps->chan_width_2) {
+		pe_err("session BW 160/320 MHz but peer BW less than 160 MHz");
+		return false;
+	}
+
 	return true;
 
 }