diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy')
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-mac.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c index d817d8d3fe18..a8a6461d103f 100644 --- a/drivers/net/wireless/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/iwlegacy/4965-mac.c | |||
@@ -1411,6 +1411,33 @@ void il4965_reply_stats(struct il_priv *il, | |||
1411 | il4965_rx_stats(il, rxb); | 1411 | il4965_rx_stats(il, rxb); |
1412 | } | 1412 | } |
1413 | 1413 | ||
1414 | |||
1415 | /* | ||
1416 | * mac80211 queues, ACs, hardware queues, FIFOs. | ||
1417 | * | ||
1418 | * Cf. http://wireless.kernel.org/en/developers/Documentation/mac80211/queues | ||
1419 | * | ||
1420 | * Mac80211 uses the following numbers, which we get as from it | ||
1421 | * by way of skb_get_queue_mapping(skb): | ||
1422 | * | ||
1423 | * VO 0 | ||
1424 | * VI 1 | ||
1425 | * BE 2 | ||
1426 | * BK 3 | ||
1427 | * | ||
1428 | * | ||
1429 | * Regular (not A-MPDU) frames are put into hardware queues corresponding | ||
1430 | * to the FIFOs, see comments in iwl-prph.h. Aggregated frames get their | ||
1431 | * own queue per aggregation session (RA/TID combination), such queues are | ||
1432 | * set up to map into FIFOs too, for which we need an AC->FIFO mapping. In | ||
1433 | * order to map frames to the right queue, we also need an AC->hw queue | ||
1434 | * mapping. This is implemented here. | ||
1435 | * | ||
1436 | * Due to the way hw queues are set up (by the hw specific modules like | ||
1437 | * iwl-4965.c), the AC->hw queue mapping is the identity | ||
1438 | * mapping. | ||
1439 | */ | ||
1440 | |||
1414 | static const u8 tid_to_ac[] = { | 1441 | static const u8 tid_to_ac[] = { |
1415 | IEEE80211_AC_BE, | 1442 | IEEE80211_AC_BE, |
1416 | IEEE80211_AC_BK, | 1443 | IEEE80211_AC_BK, |