aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_drv_ops.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-12-04 23:08:40 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-04 23:08:40 (GMT)
commit5085ffb8f8e3863ad0f36d21e2946fc0b128c413 (patch)
tree5ca0f3bca5df607f337fd5944eeaccf856e88782 /src/ap/ap_drv_ops.c
parent0570a3ea7d87bd106d557ebdf3a321d1bf61d04c (diff)
downloadhostap-5085ffb8f8e3863ad0f36d21e2946fc0b128c413.zip
hostap-5085ffb8f8e3863ad0f36d21e2946fc0b128c413.tar.gz
hostap-5085ffb8f8e3863ad0f36d21e2946fc0b128c413.tar.bz2
hostapd: Fix HT40 determination for ACS offload
Commit 16689c7cfc99c66aecbf16eb2f4a8bc941cb5d0f ('hostapd: Allow ACS to be offloaded to the driver') used incorrect operator to determine whether HT40 was configured. Fix that to mask the ht_capab bit correctly. (CID 77286) Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
-rw-r--r--src/ap/ap_drv_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 9ebcf8f..7486fda 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -804,7 +804,7 @@ int hostapd_drv_do_acs(struct hostapd_data *hapd)
os_memset(&params, 0, sizeof(params));
params.hw_mode = hapd->iface->conf->hw_mode;
params.ht_enabled = !!(hapd->iface->conf->ieee80211n);
- params.ht40_enabled = !!(hapd->iface->conf->ht_capab |
+ params.ht40_enabled = !!(hapd->iface->conf->ht_capab &
HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET);
return hapd->driver->do_acs(hapd->drv_priv, &params);
}