hostapd: Fix HT40 determination for ACS offload
Commit 16689c7cfc
('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>
This commit is contained in:
parent
0570a3ea7d
commit
5085ffb8f8
1 changed files with 1 additions and 1 deletions
|
@ -804,7 +804,7 @@ int hostapd_drv_do_acs(struct hostapd_data *hapd)
|
|||
os_memset(¶ms, 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, ¶ms);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue