Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258473
b: refs/heads/master
c: 2683d65
h: refs/heads/master
i:
  258471: 9d0a711
v: v3
  • Loading branch information
Eliad Peller authored and John W. Linville committed Jul 18, 2011
1 parent 5b04c06 commit 21b5af7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3c2ce131c7cd8c53b72b0cc04241cde17ce0c1d
refs/heads/master: 2683d65bb016a0533c25ead3025cbd24886cf35f
4 changes: 4 additions & 0 deletions trunk/net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,10 @@ static int ieee80211_set_txq_params(struct wiphy *wiphy,
*/
p.uapsd = false;

if (params->queue >= local->hw.queues)
return -EINVAL;

local->tx_conf[params->queue] = p;
if (drv_conf_tx(local, params->queue, &p)) {
wiphy_debug(local->hw.wiphy,
"failed to set TX queue parameters for queue %d\n",
Expand Down
1 change: 1 addition & 0 deletions trunk/net/mac80211/ieee80211_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ struct ieee80211_local {
struct workqueue_struct *workqueue;

unsigned long queue_stop_reasons[IEEE80211_MAX_QUEUES];
struct ieee80211_tx_queue_params tx_conf[IEEE80211_MAX_QUEUES];
/* also used to protect ampdu_ac_queue and amdpu_ac_stop_refcnt */
spinlock_t queue_stop_reason_lock;

Expand Down
1 change: 1 addition & 0 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ static void ieee80211_sta_wmm_params(struct ieee80211_local *local,
params.aifs, params.cw_min, params.cw_max,
params.txop, params.uapsd);
#endif
local->tx_conf[queue] = params;
if (drv_conf_tx(local, queue, &params))
wiphy_debug(local->hw.wiphy,
"failed to set TX queue parameters for queue %d\n",
Expand Down
7 changes: 6 additions & 1 deletion trunk/net/mac80211/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata)

qparam.uapsd = false;

local->tx_conf[queue] = qparam;
drv_conf_tx(local, queue, &qparam);
}

Expand Down Expand Up @@ -1134,7 +1135,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
struct ieee80211_hw *hw = &local->hw;
struct ieee80211_sub_if_data *sdata;
struct sta_info *sta;
int res;
int res, i;

#ifdef CONFIG_PM
if (local->suspended)
Expand Down Expand Up @@ -1211,6 +1212,10 @@ int ieee80211_reconfig(struct ieee80211_local *local)
}
mutex_unlock(&local->sta_mtx);

/* reconfigure tx conf */
for (i = 0; i < hw->queues; i++)
drv_conf_tx(local, i, &local->tx_conf[i]);

/* reconfigure hardware */
ieee80211_hw_config(local, ~0);

Expand Down

0 comments on commit 21b5af7

Please sign in to comment.