aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/p54/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c
index a0d0e726bc4e..b99ee9b472b6 100644
--- a/drivers/net/wireless/p54/main.c
+++ b/drivers/net/wireless/p54/main.c
@@ -317,7 +317,7 @@ static int p54_conf_tx(struct ieee80211_hw *dev, u16 queue,
317 int ret; 317 int ret;
318 318
319 mutex_lock(&priv->conf_mutex); 319 mutex_lock(&priv->conf_mutex);
320 if ((params) && !(queue > 4)) { 320 if (queue < dev->queues) {
321 P54_SET_QUEUE(priv->qos_params[queue], params->aifs, 321 P54_SET_QUEUE(priv->qos_params[queue], params->aifs,
322 params->cw_min, params->cw_max, params->txop); 322 params->cw_min, params->cw_max, params->txop);
323 ret = p54_set_edcf(priv); 323 ret = p54_set_edcf(priv);