diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index a771a092434b..9b2bd9176467 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -988,6 +988,7 @@ static int rt2x00lib_alloc_entries(struct data_ring *ring, | |||
988 | entry[i].flags = 0; | 988 | entry[i].flags = 0; |
989 | entry[i].ring = ring; | 989 | entry[i].ring = ring; |
990 | entry[i].skb = NULL; | 990 | entry[i].skb = NULL; |
991 | entry[i].entry_idx = i; | ||
991 | } | 992 | } |
992 | 993 | ||
993 | ring->entry = entry; | 994 | ring->entry = entry; |
@@ -1115,6 +1116,7 @@ exit: | |||
1115 | static int rt2x00lib_alloc_rings(struct rt2x00_dev *rt2x00dev) | 1116 | static int rt2x00lib_alloc_rings(struct rt2x00_dev *rt2x00dev) |
1116 | { | 1117 | { |
1117 | struct data_ring *ring; | 1118 | struct data_ring *ring; |
1119 | unsigned int index; | ||
1118 | 1120 | ||
1119 | /* | 1121 | /* |
1120 | * We need the following rings: | 1122 | * We need the following rings: |
@@ -1145,8 +1147,10 @@ static int rt2x00lib_alloc_rings(struct rt2x00_dev *rt2x00dev) | |||
1145 | * cw_min: 2^5 = 32. | 1147 | * cw_min: 2^5 = 32. |
1146 | * cw_max: 2^10 = 1024. | 1148 | * cw_max: 2^10 = 1024. |
1147 | */ | 1149 | */ |
1150 | index = 0; | ||
1148 | ring_for_each(rt2x00dev, ring) { | 1151 | ring_for_each(rt2x00dev, ring) { |
1149 | ring->rt2x00dev = rt2x00dev; | 1152 | ring->rt2x00dev = rt2x00dev; |
1153 | ring->queue_idx = index++; | ||
1150 | ring->tx_params.aifs = 2; | 1154 | ring->tx_params.aifs = 2; |
1151 | ring->tx_params.cw_min = 5; | 1155 | ring->tx_params.cw_min = 5; |
1152 | ring->tx_params.cw_max = 10; | 1156 | ring->tx_params.cw_max = 10; |