[PATCH 1/4] hostapd: allow configuring driver to VHT

Johannes Berg johannes
Fri Dec 28 06:34:21 PST 2012


On Fri, 2012-12-28 at 15:32 +0100, Johannes Berg wrote:

> +	/*
> +	 * This validation code is probably misplaced, maybe it should be
> +	 * in src/ap/hw_features.c and check the hardware support as well.
> +	 */

This is a concern, but the kernel also validates. Not sure if you want
to apply it anyway.

> +	if (data.vht_enabled) switch (vht_oper_chwidth) {
> +	case VHT_CHANWIDTH_USE_HT:
> +		if (center_segment1)
> +			return -1;
> +		if (5000 + center_segment0 * 5 != data.center_freq1)
> +			return -1;

I decided not to introduce anything but "5000" here, the value is used
in a bunch of other places in the code just like this as well and
there's no support for other starting frequencies afaict.

johannes




More information about the Hostap mailing list