소스 검색

qcacld-3.0: Do not upgrade SAP to 11AC for 5/10 MHz channel width

Do not upgrade SAP to 11AC due to gAP11ACOverride ini setting when
channel width is sub 20 MHz. Sub 20 MHz channel width operation is
not compatible with VHT rates.

Change-Id: I515cc60dbd3f76994f1288f9380618ee13ea1a23
CRs-Fixed: 1107601
Naveen Rawat 8 년 전
부모
커밋
216605a441
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      core/hdd/src/wlan_hdd_hostapd.c

+ 7 - 1
core/hdd/src/wlan_hdd_hostapd.c

@@ -7030,7 +7030,13 @@ static int wlan_hdd_setup_driver_overrides(hdd_adapter_t *ap_adapter)
 	 *
 	 * Default override enabled (for android). MDM shall disable this in ini
 	 */
-	if (hdd_ctx->config->sap_p2p_11ac_override &&
+	/*
+	 * sub_20 MHz channel width is incompatible with 11AC rates, hence do
+	 * not allow 11AC rates or more than 20 MHz channel width when
+	 * enable_sub_20_channel_width is non zero
+	 */
+	if (!hdd_ctx->config->enable_sub_20_channel_width &&
+			hdd_ctx->config->sap_p2p_11ac_override &&
 			(sap_cfg->SapHw_mode == eCSR_DOT11_MODE_11n ||
 			sap_cfg->SapHw_mode == eCSR_DOT11_MODE_11ac ||
 			sap_cfg->SapHw_mode == eCSR_DOT11_MODE_11ac_ONLY) &&