Skip to content

Commit

Permalink
rsi: Fixed issue relating to index of q_num.
Browse files Browse the repository at this point in the history
Signed-off-by: Fariya Fatima <fariyaf@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Fariya Fatima authored and John W. Linville committed Apr 9, 2014
1 parent d50c761 commit 5156fd2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/wireless/rsi/rsi_91x_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ static u8 rsi_core_determine_hal_queue(struct rsi_common *common)
}

get_queue_num:
q_num = 0;
recontend_queue = false;

q_num = rsi_determine_min_weight_queue(common);

q_len = skb_queue_len(&common->tx_queue[ii]);
ii = q_num;

Expand All @@ -118,7 +118,9 @@ static u8 rsi_core_determine_hal_queue(struct rsi_common *common)
}
}

common->tx_qinfo[q_num].pkt_contended = 0;
if (q_num < NUM_EDCA_QUEUES)
common->tx_qinfo[q_num].pkt_contended = 0;

/* Adjust the back off values for all queues again */
recontend_queue = rsi_recalculate_weights(common);

Expand Down

0 comments on commit 5156fd2

Please sign in to comment.