aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11_ht.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-02-09 10:16:58 (GMT)
committerJouni Malinen <j@w1.fi>2013-02-09 10:16:58 (GMT)
commit3aea5fbe3b4428afefe8fd2a28264c56a43aab6a (patch)
tree2464285a7b9a11112463dbcc9cdc3cfb4d6cf504 /src/ap/ieee802_11_ht.c
parenta24a5ccb28c2bc7af466e47b84dc346e6c54f062 (diff)
downloadhostap-3aea5fbe3b4428afefe8fd2a28264c56a43aab6a.zip
hostap-3aea5fbe3b4428afefe8fd2a28264c56a43aab6a.tar.gz
hostap-3aea5fbe3b4428afefe8fd2a28264c56a43aab6a.tar.bz2
hostapd: Do not change HT40 capability due to OBSS scan
The capability itself isn't really affected by an OBSS scan, only the HT operation must then be restricted to 20 MHz. Change this, and therefore use the secondary channel configuration to determine the setting of the OP_MODE_20MHZ_HT_STA_ASSOCED flag. This shouldn't really change anything functionally, it just makes the code a little less confusing and is also needed to implement more dynamic bandwidth changes if ever desired. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'src/ap/ieee802_11_ht.c')
-rw-r--r--src/ap/ieee802_11_ht.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ap/ieee802_11_ht.c b/src/ap/ieee802_11_ht.c
index 6c3696f..6483e1c 100644
--- a/src/ap/ieee802_11_ht.c
+++ b/src/ap/ieee802_11_ht.c
@@ -133,8 +133,7 @@ int hostapd_ht_operation_update(struct hostapd_iface *iface)
new_op_mode = 0;
if (iface->num_sta_no_ht)
new_op_mode = OP_MODE_MIXED;
- else if ((iface->conf->ht_capab & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET)
- && iface->num_sta_ht_20mhz)
+ else if (iface->conf->secondary_channel && iface->num_sta_ht_20mhz)
new_op_mode = OP_MODE_20MHZ_HT_STA_ASSOCED;
else if (iface->olbc_ht)
new_op_mode = OP_MODE_MAY_BE_LEGACY_STAS;