[PATCH 2/2] hostapd: DFS setup seg0 correctly for HT40-
Janusz Dziedzic
janusz.dziedzic
Wed Jan 8 02:43:16 PST 2014
Please skip this one, will be new version.
BR
Janusz
On 8 January 2014 11:27, Janusz Dziedzic <janusz.dziedzic at tieto.com> wrote:
> After we will get RADAR event we always
> choose HT40+ in case HT40+/HT40- was configured.
> Fix seg0 calculation.
>
> Signed-hostap: Janusz Dziedzic <janusz.dziedzic at tieto.com>
> ---
> src/ap/dfs.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/src/ap/dfs.c b/src/ap/dfs.c
> index 7ee829a..154bc34 100644
> --- a/src/ap/dfs.c
> +++ b/src/ap/dfs.c
> @@ -189,10 +189,9 @@ static void dfs_adjust_vht_center_freq(struct hostapd_iface *iface,
>
> switch (iface->conf->vht_oper_chwidth) {
> case VHT_CHANWIDTH_USE_HT:
> - if (iface->conf->secondary_channel == 1)
> + /* Currently we always choose HT40+ */
> + if (iface->conf->secondary_channel)
> *vht_oper_centr_freq_seg0_idx = chan->chan + 2;
> - else if (iface->conf->secondary_channel == -1)
> - *vht_oper_centr_freq_seg0_idx = chan->chan - 2;
> else
> *vht_oper_centr_freq_seg0_idx = chan->chan;
> break;
> --
> 1.7.9.5
>
More information about the Hostap
mailing list