aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/driver-ops.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-28 05:04:24 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-10 14:54:09 -0400
commita3304b0a17495183a2270d4a25978795226597a4 (patch)
tree1b1f91ab191e77833b84232ba5a61d6a584b3cd6 /net/mac80211/driver-ops.h
parentd748b4642a53cd1ead303f9e2b008295391466b7 (diff)
cfg80211/nl80211: clarify TX queue API
With the plan to change mac80211's queue API to not map ACs to queues 1:1, it seems necessary to clarify some APIs that act on ACs rather than on queues to spell that out explicitly. Do this. Also verify that the AC number given is valid. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r--net/mac80211/driver-ops.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index 0eb2bc003058..8ad40f68f2c3 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -492,7 +492,7 @@ static inline void drv_sta_rc_update(struct ieee80211_local *local,
492} 492}
493 493
494static inline int drv_conf_tx(struct ieee80211_local *local, 494static inline int drv_conf_tx(struct ieee80211_local *local,
495 struct ieee80211_sub_if_data *sdata, u16 queue, 495 struct ieee80211_sub_if_data *sdata, u16 ac,
496 const struct ieee80211_tx_queue_params *params) 496 const struct ieee80211_tx_queue_params *params)
497{ 497{
498 int ret = -EOPNOTSUPP; 498 int ret = -EOPNOTSUPP;
@@ -501,10 +501,10 @@ static inline int drv_conf_tx(struct ieee80211_local *local,
501 501
502 check_sdata_in_driver(sdata); 502 check_sdata_in_driver(sdata);
503 503
504 trace_drv_conf_tx(local, sdata, queue, params); 504 trace_drv_conf_tx(local, sdata, ac, params);
505 if (local->ops->conf_tx) 505 if (local->ops->conf_tx)
506 ret = local->ops->conf_tx(&local->hw, &sdata->vif, 506 ret = local->ops->conf_tx(&local->hw, &sdata->vif,
507 queue, params); 507 ac, params);
508 trace_drv_return_int(local, ret); 508 trace_drv_return_int(local, ret);
509 return ret; 509 return ret;
510} 510}