diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-05-20 07:13:32 -0600 |
|---|---|---|
| committer | Linux Build Service Account <lnxbuild@localhost> | 2016-05-20 07:13:32 -0600 |
| commit | d660a0127fc500e2a9db4177e362ae9f4386e3c4 (patch) | |
| tree | 0d6511244ef16e4c9c1fe7042dc249c1166e6dcf /src | |
| parent | a8325dbdadd0095eeb2783d66daae3be1b1e5443 (diff) | |
| parent | 62cd79d473cda37895c02c7a003bcf7c5ea03603 (diff) | |
| download | android_external_wpa_supplicant_8-d660a0127fc500e2a9db4177e362ae9f4386e3c4.tar.gz android_external_wpa_supplicant_8-d660a0127fc500e2a9db4177e362ae9f4386e3c4.tar.bz2 android_external_wpa_supplicant_8-d660a0127fc500e2a9db4177e362ae9f4386e3c4.zip | |
Promotion of wlan-service.lnx.1.0-00049.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
681619 Id460ff592648f2afb4ffec373badb7f6004b67f3 hostap: Provide option to disable HT20/40 COEX
Change-Id: I54217adae988a2c0a860e4e0d002deeacfd67e22
CRs-Fixed: 681619
Diffstat (limited to 'src')
| -rw-r--r-- | src/ap/ap_config.h | 1 | ||||
| -rw-r--r-- | src/ap/hw_features.c | 3 | ||||
| -rw-r--r-- | src/ap/ieee802_11_ht.c | 3 |
3 files changed, 7 insertions, 0 deletions
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; |
