summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/hdd/src/wlan_hdd_hostapd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c
index 943b87a0ae0d..2506b778dbdb 100644
--- a/core/hdd/src/wlan_hdd_hostapd.c
+++ b/core/hdd/src/wlan_hdd_hostapd.c
@@ -6974,7 +6974,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) &&