[PATCH] libertas: Fix Marvell rate table

Dan Williams dcbw at redhat.com
Mon Jan 19 11:13:30 EST 2009


On Fri, 2009-01-16 at 18:12 -0500, Dario Vlah wrote:
> Hi,
> 
> The rate table in tx.c seems to be slightly off for g rates.  Here is a 
> patch.

Could you sign off on the patch per kernel commit requirements?
Basically, certify that the work is your original work and that you have
permission to post the patch to the kernel, by adding your
Signed-off-by: tag like so:

Signed-off-by: Bill Smith <smith at somewhere.com>

Dan

> --dario
> 
> 
> 
> 
> diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c
> index dac4626..a6bf4a5 100644
> --- a/drivers/net/wireless/libertas/tx.c
> +++ b/drivers/net/wireless/libertas/tx.c
> @@ -30,21 +31,21 @@ static u32 convert_radiotap_rate_to_mv(u8 rate)
>   	case 22:		/*  11 Mbps */
>   		return 3 | (1 << 4);
>   	case 12:		/*   6 Mbps */
> -		return 4 | (1 << 4);
> -	case 18:		/*   9 Mbps */
>   		return 5 | (1 << 4);
> -	case 24:		/*  12 Mbps */
> +	case 18:		/*   9 Mbps */
>   		return 6 | (1 << 4);
> -	case 36:		/*  18 Mbps */
> +	case 24:		/*  12 Mbps */
>   		return 7 | (1 << 4);
> -	case 48:		/*  24 Mbps */
> +	case 36:		/*  18 Mbps */
>   		return 8 | (1 << 4);
> -	case 72:		/*  36 Mbps */
> +	case 48:		/*  24 Mbps */
>   		return 9 | (1 << 4);
> -	case 96:		/*  48 Mbps */
> +	case 72:		/*  36 Mbps */
>   		return 10 | (1 << 4);
> -	case 108:		/*  54 Mbps */
> +	case 96:		/*  48 Mbps */
>   		return 11 | (1 << 4);
> +	case 108:		/*  54 Mbps */
> +		return 12 | (1 << 4);
>   	}
>   	return 0;
>   }
> 
> _______________________________________________
> libertas-dev mailing list
> libertas-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/libertas-dev




More information about the libertas-dev mailing list