aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-02-03 09:54:34 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:37:00 -0500
commit8f5fa7f04484e933b3ac8dfe77995d3f1cedde5f (patch)
tree9bd801fc309d402b57880b78139fa6c53c761c2d /drivers/net/wireless
parent3b640f21af4b6b36b546fecbd3fe5109981360da (diff)
rt2x00: Fix rate initialization
Fix typo in rate initialization. This fixes the WARN_ON() in net/wireless/util.cpp:83 Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index 23dc566b26f..d69f7407b97 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -876,7 +876,7 @@ static int rt2x00lib_probe_hw_modes(struct rt2x00_dev *rt2x00dev,
876 * Initialize Rate list. 876 * Initialize Rate list.
877 */ 877 */
878 for (i = 0; i < spec->num_rates; i++) 878 for (i = 0; i < spec->num_rates; i++)
879 rt2x00lib_rate(&rates[0], i, rt2x00_get_rate(i)); 879 rt2x00lib_rate(&rates[i], i, rt2x00_get_rate(i));
880 880
881 /* 881 /*
882 * Initialize Channel list. 882 * Initialize Channel list.