aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_drv_ops.c
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2019-05-20 07:55:09 (GMT)
committerJouni Malinen <j@w1.fi>2019-05-27 14:33:59 (GMT)
commit88005ee98dd7f3ec0ab58a05b480d45bd133da2b (patch)
tree3ad742c1c5f277a5612cd5c394f4fb7fecfa38f7 /src/ap/ap_drv_ops.c
parentad9a1bfe788e5e280ac8dd1deebb32e19cbc4490 (diff)
downloadhostap-88005ee98dd7f3ec0ab58a05b480d45bd133da2b.zip
hostap-88005ee98dd7f3ec0ab58a05b480d45bd133da2b.tar.gz
hostap-88005ee98dd7f3ec0ab58a05b480d45bd133da2b.tar.bz2
HE: Pass in HE information into hostapd_set_freq_params()
Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com> Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
-rw-r--r--src/ap/ap_drv_ops.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 8bdacf6..9249762 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -541,17 +541,19 @@ int hostapd_flush(struct hostapd_data *hapd)
int hostapd_set_freq(struct hostapd_data *hapd, enum hostapd_hw_mode mode,
int freq, int channel, int ht_enabled, int vht_enabled,
+ int he_enabled,
int sec_channel_offset, int oper_chwidth,
int center_segment0, int center_segment1)
{
struct hostapd_freq_params data;
if (hostapd_set_freq_params(&data, mode, freq, channel, ht_enabled,
- vht_enabled, sec_channel_offset,
+ vht_enabled, he_enabled, sec_channel_offset,
oper_chwidth,
center_segment0, center_segment1,
hapd->iface->current_mode ?
- hapd->iface->current_mode->vht_capab : 0))
+ hapd->iface->current_mode->vht_capab : 0,
+ &hapd->iface->current_mode->he_capab))
return -1;
if (hapd->driver == NULL)
@@ -789,6 +791,7 @@ int hostapd_drv_send_action_addr3_ap(struct hostapd_data *hapd,
int hostapd_start_dfs_cac(struct hostapd_iface *iface,
enum hostapd_hw_mode mode, int freq,
int channel, int ht_enabled, int vht_enabled,
+ int he_enabled,
int sec_channel_offset, int oper_chwidth,
int center_segment0, int center_segment1)
{
@@ -806,10 +809,11 @@ int hostapd_start_dfs_cac(struct hostapd_iface *iface,
}
if (hostapd_set_freq_params(&data, mode, freq, channel, ht_enabled,
- vht_enabled, sec_channel_offset,
+ vht_enabled, he_enabled, sec_channel_offset,
oper_chwidth, center_segment0,
center_segment1,
- iface->current_mode->vht_capab)) {
+ iface->current_mode->vht_capab,
+ &iface->current_mode->he_capab)) {
wpa_printf(MSG_ERROR, "Can't set freq params");
return -1;
}