Commit 5156fd24 authored by Fariya Fatima's avatar Fariya Fatima Committed by John W. Linville

rsi: Fixed issue relating to index of q_num.

Signed-off-by: default avatarFariya Fatima <fariyaf@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d50c761a
...@@ -102,10 +102,10 @@ static u8 rsi_core_determine_hal_queue(struct rsi_common *common) ...@@ -102,10 +102,10 @@ static u8 rsi_core_determine_hal_queue(struct rsi_common *common)
} }
get_queue_num: get_queue_num:
q_num = 0;
recontend_queue = false; recontend_queue = false;
q_num = rsi_determine_min_weight_queue(common); q_num = rsi_determine_min_weight_queue(common);
q_len = skb_queue_len(&common->tx_queue[ii]); q_len = skb_queue_len(&common->tx_queue[ii]);
ii = q_num; ii = q_num;
...@@ -118,7 +118,9 @@ static u8 rsi_core_determine_hal_queue(struct rsi_common *common) ...@@ -118,7 +118,9 @@ static u8 rsi_core_determine_hal_queue(struct rsi_common *common)
} }
} }
if (q_num < NUM_EDCA_QUEUES)
common->tx_qinfo[q_num].pkt_contended = 0; common->tx_qinfo[q_num].pkt_contended = 0;
/* Adjust the back off values for all queues again */ /* Adjust the back off values for all queues again */
recontend_queue = rsi_recalculate_weights(common); recontend_queue = rsi_recalculate_weights(common);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment