aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 677d65929780..ef40db5ab3c7 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1449,14 +1449,14 @@ static int ieee80211_set_txq_params(struct wiphy *wiphy,
1449 */ 1449 */
1450 p.uapsd = false; 1450 p.uapsd = false;
1451 1451
1452 if (params->queue >= local->hw.queues) 1452 if (params->ac >= local->hw.queues)
1453 return -EINVAL; 1453 return -EINVAL;
1454 1454
1455 sdata->tx_conf[params->queue] = p; 1455 sdata->tx_conf[params->ac] = p;
1456 if (drv_conf_tx(local, sdata, params->queue, &p)) { 1456 if (drv_conf_tx(local, sdata, params->ac, &p)) {
1457 wiphy_debug(local->hw.wiphy, 1457 wiphy_debug(local->hw.wiphy,
1458 "failed to set TX queue parameters for queue %d\n", 1458 "failed to set TX queue parameters for AC %d\n",
1459 params->queue); 1459 params->ac);
1460 return -EINVAL; 1460 return -EINVAL;
1461 } 1461 }
1462 1462