On Wed, 2016-02-24 at 10:29 +0100, Felix Fietkau wrote:

> +     /*
> +      * If the rate is slower than single-stream MCS4, limit A-MSDU to usual
> +      * data packet size
> +      */
> +     if (g->duration[rate] > MCS_DURATION(1, 0, 104))
> +             return 1500;
> +
> +     /*
> +      * If the rate is slower than single-stream MCS7, limit A-MSDU to twice
> +      * the usual data packet size
> +      */
> +     if (g->duration[rate] > MCS_DURATION(1, 0, 260))
> +             return 3000;

This isn't *quite* right, since you have to take an 802.11 header (vs.
an ethernet header) into account, I think?

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to