[PATCH] libertas: Fix Marvell rate table
Dario Vlah
dario at eecs.harvard.edu
Fri Jan 16 18:12:49 EST 2009
Hi,
The rate table in tx.c seems to be slightly off for g rates. Here is a
patch.
--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;
}
More information about the libertas-dev
mailing list