From 62cd79d473cda37895c02c7a003bcf7c5ea03603 Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Tue, 17 Jun 2014 15:23:23 -0700 Subject: hostap: Provide option to disable HT20/40 COEX Added support to disable ht2040 coex, New parameter "ht2040_coex_disable" is added in hostapd.conf file for disabling ht2040 coex. By default, HT2040 coex is enabled, if user wants to disable, ht2040_coex_disable can be set to 1. Eg. ht2040_coex_disable=1 /* disable ht2040 coex */ ht2040_coex_disable=0 /* default,enable ht2040 coex */ Change-Id: Id460ff592648f2afb4ffec373badb7f6004b67f3 CRs-fixed: 681619 --- src/ap/ap_config.h | 1 + src/ap/hw_features.c | 3 +++ src/ap/ieee802_11_ht.c | 3 +++ 3 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index 6cf44c7e..71fc06e4 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -623,6 +623,7 @@ struct hostapd_config { int secondary_channel; int require_ht; int obss_interval; + int ht2040_coex_disable; u32 vht_capab; int ieee80211ac; int require_vht; diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c index 28324a8e..fcda6ab1 100644 --- a/src/ap/hw_features.c +++ b/src/ap/hw_features.c @@ -466,6 +466,9 @@ static int ieee80211n_check_40mhz(struct hostapd_iface *iface) struct wpa_driver_scan_params params; int ret; + if (iface->conf->ht2040_coex_disable == 1) + return 0; + if (!iface->conf->secondary_channel) return 0; /* HT40 not used */ diff --git a/src/ap/ieee802_11_ht.c b/src/ap/ieee802_11_ht.c index 11fde2a2..764e77b8 100644 --- a/src/ap/ieee802_11_ht.c +++ b/src/ap/ieee802_11_ht.c @@ -218,6 +218,9 @@ void hostapd_2040_coex_action(struct hostapd_data *hapd, HOSTAPD_LEVEL_DEBUG, "hostapd_public_action - action=%d", mgmt->u.action.u.public_action.action); + if (iface->conf->ht2040_coex_disable == 1) + return; + if (!(iface->conf->ht_capab & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET)) return; -- cgit v1.2.3