[PATCH] ap: Fix invalid HT40 channel pair fallback

Jouni Malinen j at w1.fi
Sat Jul 8 12:32:37 PDT 2017


On Thu, Jun 08, 2017 at 11:17:55AM +0300, Andrei Otcheretianski wrote:
> In case of incorrect HT40 configuration as part of an attempt to create
> a 80MHZ softap, iface->conf->vht_oper_centr_freq_seg0_idx and
> iface->conf->vht_oper_centr_freq_seg1_idx are zero'ed, but
> iface->conf->vht_oper_chwidth remains VHT_CHANWIDTH_80MHZ. This causes
> the logic in dfs_get_start_chan_idx to fail.
> 
> Fix this by setting iface->conf->vht_oper_chwidth to
> VHT_CHANWIDTH_USE_HT when zero'ing the center frequency parameters.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list