Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290388
b: refs/heads/master
c: b75b3a7
h: refs/heads/master
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Feb 6, 2012
1 parent cee0739 commit d7718e9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 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: 1c03c4620edc551b5bbcc87c7aca02b482d8bc51
refs/heads/master: b75b3a70a623e6c39512e3ed9a0fd76cea19c085
17 changes: 8 additions & 9 deletions trunk/drivers/net/wireless/iwlegacy/4965-mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1458,8 +1458,15 @@ il4965_get_ac_from_tid(u16 tid)
static inline int
il4965_get_fifo_from_tid(struct il_rxon_context *ctx, u16 tid)
{
const u8 ac_to_fifo[] = {
IL_TX_FIFO_VO,
IL_TX_FIFO_VI,
IL_TX_FIFO_BE,
IL_TX_FIFO_BK,
};

if (likely(tid < ARRAY_SIZE(tid_to_ac)))
return ctx->ac_to_fifo[tid_to_ac[tid]];
return ac_to_fifo[tid_to_ac[tid]];

/* no support for TIDs 8-15 yet */
return -EINVAL;
Expand Down Expand Up @@ -6104,13 +6111,6 @@ il4965_set_hw_params(struct il_priv *il)
return il->cfg->ops->lib->set_hw_params(il);
}

static const u8 il4965_bss_ac_to_fifo[] = {
IL_TX_FIFO_VO,
IL_TX_FIFO_VI,
IL_TX_FIFO_BE,
IL_TX_FIFO_BK,
};

static const u8 il4965_bss_ac_to_queue[] = {
0, 1, 2, 3,
};
Expand Down Expand Up @@ -6139,7 +6139,6 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)

il->ctx.always_active = true;
il->ctx.is_active = true;
il->ctx.ac_to_fifo = il4965_bss_ac_to_fifo;
il->ctx.ac_to_queue = il4965_bss_ac_to_queue;

SET_IEEE80211_DEV(hw, &pdev->dev);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/iwlegacy/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,6 @@ struct il_force_reset {
struct il_rxon_context {
struct ieee80211_vif *vif;

const u8 *ac_to_fifo;
const u8 *ac_to_queue;

/*
Expand Down

0 comments on commit d7718e9

Please sign in to comment.