@ -870,9 +870,10 @@ void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht,
hostapd_logger ( hapd , NULL , HOSTAPD_MODULE_IEEE80211 ,
HOSTAPD_LEVEL_INFO ,
" driver %s channel switch: freq=%d, ht=%d, vht_ch=0x%x, offset=%d, width=%d (%s), cf1=%d, cf2=%d" ,
" driver %s channel switch: freq=%d, ht=%d, vht_ch=0x%x, he_ch=0x%x, offset=%d, width=%d (%s), cf1=%d, cf2=%d" ,
finished ? " had " : " starting " ,
freq , ht , hapd - > iconf - > ch_switch_vht_config , offset ,
freq , ht , hapd - > iconf - > ch_switch_vht_config ,
hapd - > iconf - > ch_switch_he_config , offset ,
width , channel_width_to_string ( width ) , cf1 , cf2 ) ;
if ( ! hapd - > iface - > current_mode ) {
@ -944,8 +945,17 @@ void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht,
else if ( hapd - > iconf - > ch_switch_vht_config &
CH_SWITCH_VHT_DISABLED )
hapd - > iconf - > ieee80211ac = 0 ;
} else if ( hapd - > iconf - > ch_switch_he_config ) {
/* CHAN_SWITCH HE config */
if ( hapd - > iconf - > ch_switch_he_config &
CH_SWITCH_HE_ENABLED )
hapd - > iconf - > ieee80211ax = 1 ;
else if ( hapd - > iconf - > ch_switch_he_config &
CH_SWITCH_HE_DISABLED )
hapd - > iconf - > ieee80211ax = 0 ;
}
hapd - > iconf - > ch_switch_vht_config = 0 ;
hapd - > iconf - > ch_switch_he_config = 0 ;
hapd - > iconf - > secondary_channel = offset ;
hostapd_set_oper_chwidth ( hapd - > iconf , chwidth ) ;