mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 17:33:01 +00:00
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>
This commit is contained in:
parent
3b640f21af
commit
8f5fa7f044
@ -876,7 +876,7 @@ static int rt2x00lib_probe_hw_modes(struct rt2x00_dev *rt2x00dev,
|
||||
* Initialize Rate list.
|
||||
*/
|
||||
for (i = 0; i < spec->num_rates; i++)
|
||||
rt2x00lib_rate(&rates[0], i, rt2x00_get_rate(i));
|
||||
rt2x00lib_rate(&rates[i], i, rt2x00_get_rate(i));
|
||||
|
||||
/*
|
||||
* Initialize Channel list.
|
||||
|
Loading…
Reference in New Issue
Block a user