diff options
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-mac.c | 17 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.h | 1 |
2 files changed, 8 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c index 94984c850e84..731bb8c10b45 100644 --- a/drivers/net/wireless/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/iwlegacy/4965-mac.c | |||
@@ -1458,8 +1458,15 @@ il4965_get_ac_from_tid(u16 tid) | |||
1458 | static inline int | 1458 | static inline int |
1459 | il4965_get_fifo_from_tid(struct il_rxon_context *ctx, u16 tid) | 1459 | il4965_get_fifo_from_tid(struct il_rxon_context *ctx, u16 tid) |
1460 | { | 1460 | { |
1461 | const u8 ac_to_fifo[] = { | ||
1462 | IL_TX_FIFO_VO, | ||
1463 | IL_TX_FIFO_VI, | ||
1464 | IL_TX_FIFO_BE, | ||
1465 | IL_TX_FIFO_BK, | ||
1466 | }; | ||
1467 | |||
1461 | if (likely(tid < ARRAY_SIZE(tid_to_ac))) | 1468 | if (likely(tid < ARRAY_SIZE(tid_to_ac))) |
1462 | return ctx->ac_to_fifo[tid_to_ac[tid]]; | 1469 | return ac_to_fifo[tid_to_ac[tid]]; |
1463 | 1470 | ||
1464 | /* no support for TIDs 8-15 yet */ | 1471 | /* no support for TIDs 8-15 yet */ |
1465 | return -EINVAL; | 1472 | return -EINVAL; |
@@ -6104,13 +6111,6 @@ il4965_set_hw_params(struct il_priv *il) | |||
6104 | return il->cfg->ops->lib->set_hw_params(il); | 6111 | return il->cfg->ops->lib->set_hw_params(il); |
6105 | } | 6112 | } |
6106 | 6113 | ||
6107 | static const u8 il4965_bss_ac_to_fifo[] = { | ||
6108 | IL_TX_FIFO_VO, | ||
6109 | IL_TX_FIFO_VI, | ||
6110 | IL_TX_FIFO_BE, | ||
6111 | IL_TX_FIFO_BK, | ||
6112 | }; | ||
6113 | |||
6114 | static const u8 il4965_bss_ac_to_queue[] = { | 6114 | static const u8 il4965_bss_ac_to_queue[] = { |
6115 | 0, 1, 2, 3, | 6115 | 0, 1, 2, 3, |
6116 | }; | 6116 | }; |
@@ -6139,7 +6139,6 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
6139 | 6139 | ||
6140 | il->ctx.always_active = true; | 6140 | il->ctx.always_active = true; |
6141 | il->ctx.is_active = true; | 6141 | il->ctx.is_active = true; |
6142 | il->ctx.ac_to_fifo = il4965_bss_ac_to_fifo; | ||
6143 | il->ctx.ac_to_queue = il4965_bss_ac_to_queue; | 6142 | il->ctx.ac_to_queue = il4965_bss_ac_to_queue; |
6144 | 6143 | ||
6145 | SET_IEEE80211_DEV(hw, &pdev->dev); | 6144 | SET_IEEE80211_DEV(hw, &pdev->dev); |
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h index df4d1602289c..e0e4d0136601 100644 --- a/drivers/net/wireless/iwlegacy/common.h +++ b/drivers/net/wireless/iwlegacy/common.h | |||
@@ -1155,7 +1155,6 @@ struct il_force_reset { | |||
1155 | struct il_rxon_context { | 1155 | struct il_rxon_context { |
1156 | struct ieee80211_vif *vif; | 1156 | struct ieee80211_vif *vif; |
1157 | 1157 | ||
1158 | const u8 *ac_to_fifo; | ||
1159 | const u8 *ac_to_queue; | 1158 | const u8 *ac_to_queue; |
1160 | 1159 | ||
1161 | /* | 1160 | /* |