EHT: Channel switch command support
Add option to hostapd control interface CHAN_SWITCH command to allow switch in EHT mode. Signed-off-by: Muna Sinada <quic_msinada@quicinc.com> Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com> Signed-off-by: Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
This commit is contained in:
parent
dae7940a48
commit
c3d389b72f
7 changed files with 38 additions and 8 deletions
|
@ -3557,11 +3557,12 @@ static int hostapd_fill_csa_settings(struct hostapd_data *hapd,
|
|||
&hapd->iface->cs_oper_class,
|
||||
&chan) == NUM_HOSTAPD_MODES) {
|
||||
wpa_printf(MSG_DEBUG,
|
||||
"invalid frequency for channel switch (freq=%d, sec_channel_offset=%d, vht_enabled=%d, he_enabled=%d)",
|
||||
"invalid frequency for channel switch (freq=%d, sec_channel_offset=%d, vht_enabled=%d, he_enabled=%d, eht_enabled=%d)",
|
||||
settings->freq_params.freq,
|
||||
settings->freq_params.sec_channel_offset,
|
||||
settings->freq_params.vht_enabled,
|
||||
settings->freq_params.he_enabled);
|
||||
settings->freq_params.he_enabled,
|
||||
settings->freq_params.eht_enabled);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -3618,6 +3619,11 @@ void hostapd_cleanup_cs_params(struct hostapd_data *hapd)
|
|||
void hostapd_chan_switch_config(struct hostapd_data *hapd,
|
||||
struct hostapd_freq_params *freq_params)
|
||||
{
|
||||
if (freq_params->eht_enabled)
|
||||
hapd->iconf->ch_switch_eht_config |= CH_SWITCH_EHT_ENABLED;
|
||||
else
|
||||
hapd->iconf->ch_switch_eht_config |= CH_SWITCH_EHT_DISABLED;
|
||||
|
||||
if (freq_params->he_enabled)
|
||||
hapd->iconf->ch_switch_he_config |= CH_SWITCH_HE_ENABLED;
|
||||
else
|
||||
|
@ -3630,7 +3636,8 @@ void hostapd_chan_switch_config(struct hostapd_data *hapd,
|
|||
|
||||
hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
|
||||
HOSTAPD_LEVEL_INFO,
|
||||
"CHAN_SWITCH HE config 0x%x VHT config 0x%x",
|
||||
"CHAN_SWITCH EHT config 0x%x HE config 0x%x VHT config 0x%x",
|
||||
hapd->iconf->ch_switch_eht_config,
|
||||
hapd->iconf->ch_switch_he_config,
|
||||
hapd->iconf->ch_switch_vht_config);
|
||||
}
|
||||
|
@ -3708,6 +3715,7 @@ hostapd_switch_channel_fallback(struct hostapd_iface *iface,
|
|||
iface->conf->ieee80211n = freq_params->ht_enabled;
|
||||
iface->conf->ieee80211ac = freq_params->vht_enabled;
|
||||
iface->conf->ieee80211ax = freq_params->he_enabled;
|
||||
iface->conf->ieee80211be = freq_params->eht_enabled;
|
||||
|
||||
/*
|
||||
* cs_params must not be cleared earlier because the freq_params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue