diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800.h | 44 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 18 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.h | 12 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.h | 62 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.h | 36 |
10 files changed, 112 insertions, 112 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index 2fc6ca5e0968..54ca49ad3472 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -664,12 +664,12 @@ static void rt2400pci_kick_queue(struct data_queue *queue) | |||
664 | u32 reg; | 664 | u32 reg; |
665 | 665 | ||
666 | switch (queue->qid) { | 666 | switch (queue->qid) { |
667 | case QID_AC_BE: | 667 | case QID_AC_VO: |
668 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); | 668 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); |
669 | rt2x00_set_field32(®, TXCSR0_KICK_PRIO, 1); | 669 | rt2x00_set_field32(®, TXCSR0_KICK_PRIO, 1); |
670 | rt2x00pci_register_write(rt2x00dev, TXCSR0, reg); | 670 | rt2x00pci_register_write(rt2x00dev, TXCSR0, reg); |
671 | break; | 671 | break; |
672 | case QID_AC_BK: | 672 | case QID_AC_VI: |
673 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); | 673 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); |
674 | rt2x00_set_field32(®, TXCSR0_KICK_TX, 1); | 674 | rt2x00_set_field32(®, TXCSR0_KICK_TX, 1); |
675 | rt2x00pci_register_write(rt2x00dev, TXCSR0, reg); | 675 | rt2x00pci_register_write(rt2x00dev, TXCSR0, reg); |
@@ -690,8 +690,8 @@ static void rt2400pci_stop_queue(struct data_queue *queue) | |||
690 | u32 reg; | 690 | u32 reg; |
691 | 691 | ||
692 | switch (queue->qid) { | 692 | switch (queue->qid) { |
693 | case QID_AC_BE: | 693 | case QID_AC_VO: |
694 | case QID_AC_BK: | 694 | case QID_AC_VI: |
695 | case QID_ATIM: | 695 | case QID_ATIM: |
696 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); | 696 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); |
697 | rt2x00_set_field32(®, TXCSR0_ABORT, 1); | 697 | rt2x00_set_field32(®, TXCSR0_ABORT, 1); |
@@ -1322,13 +1322,13 @@ static irqreturn_t rt2400pci_interrupt_thread(int irq, void *dev_instance) | |||
1322 | * 4 - Priority ring transmit done interrupt. | 1322 | * 4 - Priority ring transmit done interrupt. |
1323 | */ | 1323 | */ |
1324 | if (rt2x00_get_field32(reg, CSR7_TXDONE_PRIORING)) | 1324 | if (rt2x00_get_field32(reg, CSR7_TXDONE_PRIORING)) |
1325 | rt2400pci_txdone(rt2x00dev, QID_AC_BE); | 1325 | rt2400pci_txdone(rt2x00dev, QID_AC_VO); |
1326 | 1326 | ||
1327 | /* | 1327 | /* |
1328 | * 5 - Tx ring transmit done interrupt. | 1328 | * 5 - Tx ring transmit done interrupt. |
1329 | */ | 1329 | */ |
1330 | if (rt2x00_get_field32(reg, CSR7_TXDONE_TXRING)) | 1330 | if (rt2x00_get_field32(reg, CSR7_TXDONE_TXRING)) |
1331 | rt2400pci_txdone(rt2x00dev, QID_AC_BK); | 1331 | rt2400pci_txdone(rt2x00dev, QID_AC_VI); |
1332 | 1332 | ||
1333 | /* Enable interrupts again. */ | 1333 | /* Enable interrupts again. */ |
1334 | rt2x00dev->ops->lib->set_device_state(rt2x00dev, | 1334 | rt2x00dev->ops->lib->set_device_state(rt2x00dev, |
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index d67f91192338..a9ff26a27724 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -754,12 +754,12 @@ static void rt2500pci_kick_queue(struct data_queue *queue) | |||
754 | u32 reg; | 754 | u32 reg; |
755 | 755 | ||
756 | switch (queue->qid) { | 756 | switch (queue->qid) { |
757 | case QID_AC_BE: | 757 | case QID_AC_VO: |
758 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); | 758 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); |
759 | rt2x00_set_field32(®, TXCSR0_KICK_PRIO, 1); | 759 | rt2x00_set_field32(®, TXCSR0_KICK_PRIO, 1); |
760 | rt2x00pci_register_write(rt2x00dev, TXCSR0, reg); | 760 | rt2x00pci_register_write(rt2x00dev, TXCSR0, reg); |
761 | break; | 761 | break; |
762 | case QID_AC_BK: | 762 | case QID_AC_VI: |
763 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); | 763 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); |
764 | rt2x00_set_field32(®, TXCSR0_KICK_TX, 1); | 764 | rt2x00_set_field32(®, TXCSR0_KICK_TX, 1); |
765 | rt2x00pci_register_write(rt2x00dev, TXCSR0, reg); | 765 | rt2x00pci_register_write(rt2x00dev, TXCSR0, reg); |
@@ -780,8 +780,8 @@ static void rt2500pci_stop_queue(struct data_queue *queue) | |||
780 | u32 reg; | 780 | u32 reg; |
781 | 781 | ||
782 | switch (queue->qid) { | 782 | switch (queue->qid) { |
783 | case QID_AC_BE: | 783 | case QID_AC_VO: |
784 | case QID_AC_BK: | 784 | case QID_AC_VI: |
785 | case QID_ATIM: | 785 | case QID_ATIM: |
786 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); | 786 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); |
787 | rt2x00_set_field32(®, TXCSR0_ABORT, 1); | 787 | rt2x00_set_field32(®, TXCSR0_ABORT, 1); |
@@ -1455,13 +1455,13 @@ static irqreturn_t rt2500pci_interrupt_thread(int irq, void *dev_instance) | |||
1455 | * 4 - Priority ring transmit done interrupt. | 1455 | * 4 - Priority ring transmit done interrupt. |
1456 | */ | 1456 | */ |
1457 | if (rt2x00_get_field32(reg, CSR7_TXDONE_PRIORING)) | 1457 | if (rt2x00_get_field32(reg, CSR7_TXDONE_PRIORING)) |
1458 | rt2500pci_txdone(rt2x00dev, QID_AC_BE); | 1458 | rt2500pci_txdone(rt2x00dev, QID_AC_VO); |
1459 | 1459 | ||
1460 | /* | 1460 | /* |
1461 | * 5 - Tx ring transmit done interrupt. | 1461 | * 5 - Tx ring transmit done interrupt. |
1462 | */ | 1462 | */ |
1463 | if (rt2x00_get_field32(reg, CSR7_TXDONE_TXRING)) | 1463 | if (rt2x00_get_field32(reg, CSR7_TXDONE_TXRING)) |
1464 | rt2500pci_txdone(rt2x00dev, QID_AC_BK); | 1464 | rt2500pci_txdone(rt2x00dev, QID_AC_VI); |
1465 | 1465 | ||
1466 | /* Enable interrupts again. */ | 1466 | /* Enable interrupts again. */ |
1467 | rt2x00dev->ops->lib->set_device_state(rt2x00dev, | 1467 | rt2x00dev->ops->lib->set_device_state(rt2x00dev, |
diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h index 9ea09612c878..4c55e8525cad 100644 --- a/drivers/net/wireless/rt2x00/rt2800.h +++ b/drivers/net/wireless/rt2x00/rt2800.h | |||
@@ -213,10 +213,10 @@ | |||
213 | 213 | ||
214 | /* | 214 | /* |
215 | * WMM_AIFSN_CFG: Aifsn for each EDCA AC | 215 | * WMM_AIFSN_CFG: Aifsn for each EDCA AC |
216 | * AIFSN0: AC_BE | 216 | * AIFSN0: AC_VO |
217 | * AIFSN1: AC_BK | 217 | * AIFSN1: AC_VI |
218 | * AIFSN2: AC_VI | 218 | * AIFSN2: AC_BE |
219 | * AIFSN3: AC_VO | 219 | * AIFSN3: AC_BK |
220 | */ | 220 | */ |
221 | #define WMM_AIFSN_CFG 0x0214 | 221 | #define WMM_AIFSN_CFG 0x0214 |
222 | #define WMM_AIFSN_CFG_AIFSN0 FIELD32(0x0000000f) | 222 | #define WMM_AIFSN_CFG_AIFSN0 FIELD32(0x0000000f) |
@@ -226,10 +226,10 @@ | |||
226 | 226 | ||
227 | /* | 227 | /* |
228 | * WMM_CWMIN_CSR: CWmin for each EDCA AC | 228 | * WMM_CWMIN_CSR: CWmin for each EDCA AC |
229 | * CWMIN0: AC_BE | 229 | * CWMIN0: AC_VO |
230 | * CWMIN1: AC_BK | 230 | * CWMIN1: AC_VI |
231 | * CWMIN2: AC_VI | 231 | * CWMIN2: AC_BE |
232 | * CWMIN3: AC_VO | 232 | * CWMIN3: AC_BK |
233 | */ | 233 | */ |
234 | #define WMM_CWMIN_CFG 0x0218 | 234 | #define WMM_CWMIN_CFG 0x0218 |
235 | #define WMM_CWMIN_CFG_CWMIN0 FIELD32(0x0000000f) | 235 | #define WMM_CWMIN_CFG_CWMIN0 FIELD32(0x0000000f) |
@@ -239,10 +239,10 @@ | |||
239 | 239 | ||
240 | /* | 240 | /* |
241 | * WMM_CWMAX_CSR: CWmax for each EDCA AC | 241 | * WMM_CWMAX_CSR: CWmax for each EDCA AC |
242 | * CWMAX0: AC_BE | 242 | * CWMAX0: AC_VO |
243 | * CWMAX1: AC_BK | 243 | * CWMAX1: AC_VI |
244 | * CWMAX2: AC_VI | 244 | * CWMAX2: AC_BE |
245 | * CWMAX3: AC_VO | 245 | * CWMAX3: AC_BK |
246 | */ | 246 | */ |
247 | #define WMM_CWMAX_CFG 0x021c | 247 | #define WMM_CWMAX_CFG 0x021c |
248 | #define WMM_CWMAX_CFG_CWMAX0 FIELD32(0x0000000f) | 248 | #define WMM_CWMAX_CFG_CWMAX0 FIELD32(0x0000000f) |
@@ -251,18 +251,18 @@ | |||
251 | #define WMM_CWMAX_CFG_CWMAX3 FIELD32(0x0000f000) | 251 | #define WMM_CWMAX_CFG_CWMAX3 FIELD32(0x0000f000) |
252 | 252 | ||
253 | /* | 253 | /* |
254 | * AC_TXOP0: AC_BK/AC_BE TXOP register | 254 | * AC_TXOP0: AC_VO/AC_VI TXOP register |
255 | * AC0TXOP: AC_BK in unit of 32us | 255 | * AC0TXOP: AC_VO in unit of 32us |
256 | * AC1TXOP: AC_BE in unit of 32us | 256 | * AC1TXOP: AC_VI in unit of 32us |
257 | */ | 257 | */ |
258 | #define WMM_TXOP0_CFG 0x0220 | 258 | #define WMM_TXOP0_CFG 0x0220 |
259 | #define WMM_TXOP0_CFG_AC0TXOP FIELD32(0x0000ffff) | 259 | #define WMM_TXOP0_CFG_AC0TXOP FIELD32(0x0000ffff) |
260 | #define WMM_TXOP0_CFG_AC1TXOP FIELD32(0xffff0000) | 260 | #define WMM_TXOP0_CFG_AC1TXOP FIELD32(0xffff0000) |
261 | 261 | ||
262 | /* | 262 | /* |
263 | * AC_TXOP1: AC_VO/AC_VI TXOP register | 263 | * AC_TXOP1: AC_BE/AC_BK TXOP register |
264 | * AC2TXOP: AC_VI in unit of 32us | 264 | * AC2TXOP: AC_BE in unit of 32us |
265 | * AC3TXOP: AC_VO in unit of 32us | 265 | * AC3TXOP: AC_BK in unit of 32us |
266 | */ | 266 | */ |
267 | #define WMM_TXOP1_CFG 0x0224 | 267 | #define WMM_TXOP1_CFG 0x0224 |
268 | #define WMM_TXOP1_CFG_AC2TXOP FIELD32(0x0000ffff) | 268 | #define WMM_TXOP1_CFG_AC2TXOP FIELD32(0x0000ffff) |
@@ -288,7 +288,7 @@ | |||
288 | #define MCU_CMD_CFG 0x022c | 288 | #define MCU_CMD_CFG 0x022c |
289 | 289 | ||
290 | /* | 290 | /* |
291 | * AC_BK register offsets | 291 | * AC_VO register offsets |
292 | */ | 292 | */ |
293 | #define TX_BASE_PTR0 0x0230 | 293 | #define TX_BASE_PTR0 0x0230 |
294 | #define TX_MAX_CNT0 0x0234 | 294 | #define TX_MAX_CNT0 0x0234 |
@@ -296,7 +296,7 @@ | |||
296 | #define TX_DTX_IDX0 0x023c | 296 | #define TX_DTX_IDX0 0x023c |
297 | 297 | ||
298 | /* | 298 | /* |
299 | * AC_BE register offsets | 299 | * AC_VI register offsets |
300 | */ | 300 | */ |
301 | #define TX_BASE_PTR1 0x0240 | 301 | #define TX_BASE_PTR1 0x0240 |
302 | #define TX_MAX_CNT1 0x0244 | 302 | #define TX_MAX_CNT1 0x0244 |
@@ -304,7 +304,7 @@ | |||
304 | #define TX_DTX_IDX1 0x024c | 304 | #define TX_DTX_IDX1 0x024c |
305 | 305 | ||
306 | /* | 306 | /* |
307 | * AC_VI register offsets | 307 | * AC_BE register offsets |
308 | */ | 308 | */ |
309 | #define TX_BASE_PTR2 0x0250 | 309 | #define TX_BASE_PTR2 0x0250 |
310 | #define TX_MAX_CNT2 0x0254 | 310 | #define TX_MAX_CNT2 0x0254 |
@@ -312,7 +312,7 @@ | |||
312 | #define TX_DTX_IDX2 0x025c | 312 | #define TX_DTX_IDX2 0x025c |
313 | 313 | ||
314 | /* | 314 | /* |
315 | * AC_VO register offsets | 315 | * AC_BK register offsets |
316 | */ | 316 | */ |
317 | #define TX_BASE_PTR3 0x0260 | 317 | #define TX_BASE_PTR3 0x0260 |
318 | #define TX_MAX_CNT3 0x0264 | 318 | #define TX_MAX_CNT3 0x0264 |
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index 15eef7212bb1..baa1468a56a8 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -217,10 +217,10 @@ static void rt2800pci_kick_queue(struct data_queue *queue) | |||
217 | struct queue_entry *entry; | 217 | struct queue_entry *entry; |
218 | 218 | ||
219 | switch (queue->qid) { | 219 | switch (queue->qid) { |
220 | case QID_AC_VO: | ||
221 | case QID_AC_VI: | ||
220 | case QID_AC_BE: | 222 | case QID_AC_BE: |
221 | case QID_AC_BK: | 223 | case QID_AC_BK: |
222 | case QID_AC_VI: | ||
223 | case QID_AC_VO: | ||
224 | entry = rt2x00queue_get_entry(queue, Q_INDEX); | 224 | entry = rt2x00queue_get_entry(queue, Q_INDEX); |
225 | rt2800_register_write(rt2x00dev, TX_CTX_IDX(queue->qid), entry->entry_idx); | 225 | rt2800_register_write(rt2x00dev, TX_CTX_IDX(queue->qid), entry->entry_idx); |
226 | break; | 226 | break; |
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 52cc92d426f3..ca82b3a91697 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -746,10 +746,10 @@ void rt2x00queue_pause_queue(struct data_queue *queue) | |||
746 | return; | 746 | return; |
747 | 747 | ||
748 | switch (queue->qid) { | 748 | switch (queue->qid) { |
749 | case QID_AC_VO: | ||
750 | case QID_AC_VI: | ||
749 | case QID_AC_BE: | 751 | case QID_AC_BE: |
750 | case QID_AC_BK: | 752 | case QID_AC_BK: |
751 | case QID_AC_VI: | ||
752 | case QID_AC_VO: | ||
753 | /* | 753 | /* |
754 | * For TX queues, we have to disable the queue | 754 | * For TX queues, we have to disable the queue |
755 | * inside mac80211. | 755 | * inside mac80211. |
@@ -770,10 +770,10 @@ void rt2x00queue_unpause_queue(struct data_queue *queue) | |||
770 | return; | 770 | return; |
771 | 771 | ||
772 | switch (queue->qid) { | 772 | switch (queue->qid) { |
773 | case QID_AC_VO: | ||
774 | case QID_AC_VI: | ||
773 | case QID_AC_BE: | 775 | case QID_AC_BE: |
774 | case QID_AC_BK: | 776 | case QID_AC_BK: |
775 | case QID_AC_VI: | ||
776 | case QID_AC_VO: | ||
777 | /* | 777 | /* |
778 | * For TX queues, we have to enable the queue | 778 | * For TX queues, we have to enable the queue |
779 | * inside mac80211. | 779 | * inside mac80211. |
@@ -834,10 +834,10 @@ void rt2x00queue_flush_queue(struct data_queue *queue, bool drop) | |||
834 | unsigned int i; | 834 | unsigned int i; |
835 | bool started; | 835 | bool started; |
836 | bool tx_queue = | 836 | bool tx_queue = |
837 | (queue->qid == QID_AC_BE) || | 837 | (queue->qid == QID_AC_VO) || |
838 | (queue->qid == QID_AC_BK) || | ||
839 | (queue->qid == QID_AC_VI) || | 838 | (queue->qid == QID_AC_VI) || |
840 | (queue->qid == QID_AC_VO); | 839 | (queue->qid == QID_AC_BE) || |
840 | (queue->qid == QID_AC_BK); | ||
841 | 841 | ||
842 | mutex_lock(&queue->status_lock); | 842 | mutex_lock(&queue->status_lock); |
843 | 843 | ||
@@ -1141,7 +1141,7 @@ int rt2x00queue_allocate(struct rt2x00_dev *rt2x00dev) | |||
1141 | /* | 1141 | /* |
1142 | * Initialize queue parameters. | 1142 | * Initialize queue parameters. |
1143 | * RX: qid = QID_RX | 1143 | * RX: qid = QID_RX |
1144 | * TX: qid = QID_AC_BE + index | 1144 | * TX: qid = QID_AC_VO + index |
1145 | * TX: cw_min: 2^5 = 32. | 1145 | * TX: cw_min: 2^5 = 32. |
1146 | * TX: cw_max: 2^10 = 1024. | 1146 | * TX: cw_max: 2^10 = 1024. |
1147 | * BCN: qid = QID_BEACON | 1147 | * BCN: qid = QID_BEACON |
@@ -1149,7 +1149,7 @@ int rt2x00queue_allocate(struct rt2x00_dev *rt2x00dev) | |||
1149 | */ | 1149 | */ |
1150 | rt2x00queue_init(rt2x00dev, rt2x00dev->rx, QID_RX); | 1150 | rt2x00queue_init(rt2x00dev, rt2x00dev->rx, QID_RX); |
1151 | 1151 | ||
1152 | qid = QID_AC_BE; | 1152 | qid = QID_AC_VO; |
1153 | tx_queue_for_each(rt2x00dev, queue) | 1153 | tx_queue_for_each(rt2x00dev, queue) |
1154 | rt2x00queue_init(rt2x00dev, queue, qid++); | 1154 | rt2x00queue_init(rt2x00dev, queue, qid++); |
1155 | 1155 | ||
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h index 47659346070b..fab8e2687f29 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.h +++ b/drivers/net/wireless/rt2x00/rt2x00queue.h | |||
@@ -45,10 +45,10 @@ | |||
45 | /** | 45 | /** |
46 | * enum data_queue_qid: Queue identification | 46 | * enum data_queue_qid: Queue identification |
47 | * | 47 | * |
48 | * @QID_AC_VO: AC VO queue | ||
49 | * @QID_AC_VI: AC VI queue | ||
48 | * @QID_AC_BE: AC BE queue | 50 | * @QID_AC_BE: AC BE queue |
49 | * @QID_AC_BK: AC BK queue | 51 | * @QID_AC_BK: AC BK queue |
50 | * @QID_AC_VI: AC VI queue | ||
51 | * @QID_AC_VO: AC VO queue | ||
52 | * @QID_HCCA: HCCA queue | 52 | * @QID_HCCA: HCCA queue |
53 | * @QID_MGMT: MGMT queue (prio queue) | 53 | * @QID_MGMT: MGMT queue (prio queue) |
54 | * @QID_RX: RX queue | 54 | * @QID_RX: RX queue |
@@ -57,10 +57,10 @@ | |||
57 | * @QID_ATIM: Atim queue (value unspeficied, don't send it to device) | 57 | * @QID_ATIM: Atim queue (value unspeficied, don't send it to device) |
58 | */ | 58 | */ |
59 | enum data_queue_qid { | 59 | enum data_queue_qid { |
60 | QID_AC_BE = 0, | 60 | QID_AC_VO = 0, |
61 | QID_AC_BK = 1, | 61 | QID_AC_VI = 1, |
62 | QID_AC_VI = 2, | 62 | QID_AC_BE = 2, |
63 | QID_AC_VO = 3, | 63 | QID_AC_BK = 3, |
64 | QID_HCCA = 4, | 64 | QID_HCCA = 4, |
65 | QID_MGMT = 13, | 65 | QID_MGMT = 13, |
66 | QID_RX = 14, | 66 | QID_RX = 14, |
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c index 8a16b5106a33..1a9937d5aff6 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.c +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c | |||
@@ -353,10 +353,10 @@ static void rt2x00usb_kick_rx_entry(struct queue_entry *entry) | |||
353 | void rt2x00usb_kick_queue(struct data_queue *queue) | 353 | void rt2x00usb_kick_queue(struct data_queue *queue) |
354 | { | 354 | { |
355 | switch (queue->qid) { | 355 | switch (queue->qid) { |
356 | case QID_AC_VO: | ||
357 | case QID_AC_VI: | ||
356 | case QID_AC_BE: | 358 | case QID_AC_BE: |
357 | case QID_AC_BK: | 359 | case QID_AC_BK: |
358 | case QID_AC_VI: | ||
359 | case QID_AC_VO: | ||
360 | if (!rt2x00queue_empty(queue)) | 360 | if (!rt2x00queue_empty(queue)) |
361 | rt2x00queue_for_each_entry(queue, Q_INDEX_DONE, Q_INDEX, | 361 | rt2x00queue_for_each_entry(queue, Q_INDEX_DONE, Q_INDEX, |
362 | rt2x00usb_kick_tx_entry); | 362 | rt2x00usb_kick_tx_entry); |
@@ -403,10 +403,10 @@ void rt2x00usb_flush_queue(struct data_queue *queue) | |||
403 | * Obtain the queue completion handler | 403 | * Obtain the queue completion handler |
404 | */ | 404 | */ |
405 | switch (queue->qid) { | 405 | switch (queue->qid) { |
406 | case QID_AC_VO: | ||
407 | case QID_AC_VI: | ||
406 | case QID_AC_BE: | 408 | case QID_AC_BE: |
407 | case QID_AC_BK: | 409 | case QID_AC_BK: |
408 | case QID_AC_VI: | ||
409 | case QID_AC_VO: | ||
410 | completion = &queue->rt2x00dev->txdone_work; | 410 | completion = &queue->rt2x00dev->txdone_work; |
411 | break; | 411 | break; |
412 | case QID_RX: | 412 | case QID_RX: |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 7156b7881233..9405b100a75a 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -1171,22 +1171,22 @@ static void rt61pci_kick_queue(struct data_queue *queue) | |||
1171 | u32 reg; | 1171 | u32 reg; |
1172 | 1172 | ||
1173 | switch (queue->qid) { | 1173 | switch (queue->qid) { |
1174 | case QID_AC_BE: | 1174 | case QID_AC_VO: |
1175 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); | 1175 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); |
1176 | rt2x00_set_field32(®, TX_CNTL_CSR_KICK_TX_AC0, 1); | 1176 | rt2x00_set_field32(®, TX_CNTL_CSR_KICK_TX_AC0, 1); |
1177 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); | 1177 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); |
1178 | break; | 1178 | break; |
1179 | case QID_AC_BK: | 1179 | case QID_AC_VI: |
1180 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); | 1180 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); |
1181 | rt2x00_set_field32(®, TX_CNTL_CSR_KICK_TX_AC1, 1); | 1181 | rt2x00_set_field32(®, TX_CNTL_CSR_KICK_TX_AC1, 1); |
1182 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); | 1182 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); |
1183 | break; | 1183 | break; |
1184 | case QID_AC_VI: | 1184 | case QID_AC_BE: |
1185 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); | 1185 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); |
1186 | rt2x00_set_field32(®, TX_CNTL_CSR_KICK_TX_AC2, 1); | 1186 | rt2x00_set_field32(®, TX_CNTL_CSR_KICK_TX_AC2, 1); |
1187 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); | 1187 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); |
1188 | break; | 1188 | break; |
1189 | case QID_AC_VO: | 1189 | case QID_AC_BK: |
1190 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); | 1190 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); |
1191 | rt2x00_set_field32(®, TX_CNTL_CSR_KICK_TX_AC3, 1); | 1191 | rt2x00_set_field32(®, TX_CNTL_CSR_KICK_TX_AC3, 1); |
1192 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); | 1192 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); |
@@ -1202,22 +1202,22 @@ static void rt61pci_stop_queue(struct data_queue *queue) | |||
1202 | u32 reg; | 1202 | u32 reg; |
1203 | 1203 | ||
1204 | switch (queue->qid) { | 1204 | switch (queue->qid) { |
1205 | case QID_AC_BE: | 1205 | case QID_AC_VO: |
1206 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); | 1206 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); |
1207 | rt2x00_set_field32(®, TX_CNTL_CSR_ABORT_TX_AC0, 1); | 1207 | rt2x00_set_field32(®, TX_CNTL_CSR_ABORT_TX_AC0, 1); |
1208 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); | 1208 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); |
1209 | break; | 1209 | break; |
1210 | case QID_AC_BK: | 1210 | case QID_AC_VI: |
1211 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); | 1211 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); |
1212 | rt2x00_set_field32(®, TX_CNTL_CSR_ABORT_TX_AC1, 1); | 1212 | rt2x00_set_field32(®, TX_CNTL_CSR_ABORT_TX_AC1, 1); |
1213 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); | 1213 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); |
1214 | break; | 1214 | break; |
1215 | case QID_AC_VI: | 1215 | case QID_AC_BE: |
1216 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); | 1216 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); |
1217 | rt2x00_set_field32(®, TX_CNTL_CSR_ABORT_TX_AC2, 1); | 1217 | rt2x00_set_field32(®, TX_CNTL_CSR_ABORT_TX_AC2, 1); |
1218 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); | 1218 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); |
1219 | break; | 1219 | break; |
1220 | case QID_AC_VO: | 1220 | case QID_AC_BK: |
1221 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); | 1221 | rt2x00pci_register_read(rt2x00dev, TX_CNTL_CSR, ®); |
1222 | rt2x00_set_field32(®, TX_CNTL_CSR_ABORT_TX_AC3, 1); | 1222 | rt2x00_set_field32(®, TX_CNTL_CSR_ABORT_TX_AC3, 1); |
1223 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); | 1223 | rt2x00pci_register_write(rt2x00dev, TX_CNTL_CSR, reg); |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.h b/drivers/net/wireless/rt2x00/rt61pci.h index afc803b7959f..e3cd6db76b0e 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.h +++ b/drivers/net/wireless/rt2x00/rt61pci.h | |||
@@ -784,25 +784,25 @@ struct hw_pairwise_ta_entry { | |||
784 | */ | 784 | */ |
785 | 785 | ||
786 | /* | 786 | /* |
787 | * AC0_BASE_CSR: AC_BK base address. | 787 | * AC0_BASE_CSR: AC_VO base address. |
788 | */ | 788 | */ |
789 | #define AC0_BASE_CSR 0x3400 | 789 | #define AC0_BASE_CSR 0x3400 |
790 | #define AC0_BASE_CSR_RING_REGISTER FIELD32(0xffffffff) | 790 | #define AC0_BASE_CSR_RING_REGISTER FIELD32(0xffffffff) |
791 | 791 | ||
792 | /* | 792 | /* |
793 | * AC1_BASE_CSR: AC_BE base address. | 793 | * AC1_BASE_CSR: AC_VI base address. |
794 | */ | 794 | */ |
795 | #define AC1_BASE_CSR 0x3404 | 795 | #define AC1_BASE_CSR 0x3404 |
796 | #define AC1_BASE_CSR_RING_REGISTER FIELD32(0xffffffff) | 796 | #define AC1_BASE_CSR_RING_REGISTER FIELD32(0xffffffff) |
797 | 797 | ||
798 | /* | 798 | /* |
799 | * AC2_BASE_CSR: AC_VI base address. | 799 | * AC2_BASE_CSR: AC_BE base address. |
800 | */ | 800 | */ |
801 | #define AC2_BASE_CSR 0x3408 | 801 | #define AC2_BASE_CSR 0x3408 |
802 | #define AC2_BASE_CSR_RING_REGISTER FIELD32(0xffffffff) | 802 | #define AC2_BASE_CSR_RING_REGISTER FIELD32(0xffffffff) |
803 | 803 | ||
804 | /* | 804 | /* |
805 | * AC3_BASE_CSR: AC_VO base address. | 805 | * AC3_BASE_CSR: AC_BK base address. |
806 | */ | 806 | */ |
807 | #define AC3_BASE_CSR 0x340c | 807 | #define AC3_BASE_CSR 0x340c |
808 | #define AC3_BASE_CSR_RING_REGISTER FIELD32(0xffffffff) | 808 | #define AC3_BASE_CSR_RING_REGISTER FIELD32(0xffffffff) |
@@ -814,7 +814,7 @@ struct hw_pairwise_ta_entry { | |||
814 | #define MGMT_BASE_CSR_RING_REGISTER FIELD32(0xffffffff) | 814 | #define MGMT_BASE_CSR_RING_REGISTER FIELD32(0xffffffff) |
815 | 815 | ||
816 | /* | 816 | /* |
817 | * TX_RING_CSR0: TX Ring size for AC_BK, AC_BE, AC_VI, AC_VO. | 817 | * TX_RING_CSR0: TX Ring size for AC_VO, AC_VI, AC_BE, AC_BK. |
818 | */ | 818 | */ |
819 | #define TX_RING_CSR0 0x3418 | 819 | #define TX_RING_CSR0 0x3418 |
820 | #define TX_RING_CSR0_AC0_RING_SIZE FIELD32(0x000000ff) | 820 | #define TX_RING_CSR0_AC0_RING_SIZE FIELD32(0x000000ff) |
@@ -833,10 +833,10 @@ struct hw_pairwise_ta_entry { | |||
833 | 833 | ||
834 | /* | 834 | /* |
835 | * AIFSN_CSR: AIFSN for each EDCA AC. | 835 | * AIFSN_CSR: AIFSN for each EDCA AC. |
836 | * AIFSN0: For AC_BK. | 836 | * AIFSN0: For AC_VO. |
837 | * AIFSN1: For AC_BE. | 837 | * AIFSN1: For AC_VI. |
838 | * AIFSN2: For AC_VI. | 838 | * AIFSN2: For AC_BE. |
839 | * AIFSN3: For AC_VO. | 839 | * AIFSN3: For AC_BK. |
840 | */ | 840 | */ |
841 | #define AIFSN_CSR 0x3420 | 841 | #define AIFSN_CSR 0x3420 |
842 | #define AIFSN_CSR_AIFSN0 FIELD32(0x0000000f) | 842 | #define AIFSN_CSR_AIFSN0 FIELD32(0x0000000f) |
@@ -846,10 +846,10 @@ struct hw_pairwise_ta_entry { | |||
846 | 846 | ||
847 | /* | 847 | /* |
848 | * CWMIN_CSR: CWmin for each EDCA AC. | 848 | * CWMIN_CSR: CWmin for each EDCA AC. |
849 | * CWMIN0: For AC_BK. | 849 | * CWMIN0: For AC_VO. |
850 | * CWMIN1: For AC_BE. | 850 | * CWMIN1: For AC_VI. |
851 | * CWMIN2: For AC_VI. | 851 | * CWMIN2: For AC_BE. |
852 | * CWMIN3: For AC_VO. | 852 | * CWMIN3: For AC_BK. |
853 | */ | 853 | */ |
854 | #define CWMIN_CSR 0x3424 | 854 | #define CWMIN_CSR 0x3424 |
855 | #define CWMIN_CSR_CWMIN0 FIELD32(0x0000000f) | 855 | #define CWMIN_CSR_CWMIN0 FIELD32(0x0000000f) |
@@ -859,10 +859,10 @@ struct hw_pairwise_ta_entry { | |||
859 | 859 | ||
860 | /* | 860 | /* |
861 | * CWMAX_CSR: CWmax for each EDCA AC. | 861 | * CWMAX_CSR: CWmax for each EDCA AC. |
862 | * CWMAX0: For AC_BK. | 862 | * CWMAX0: For AC_VO. |
863 | * CWMAX1: For AC_BE. | 863 | * CWMAX1: For AC_VI. |
864 | * CWMAX2: For AC_VI. | 864 | * CWMAX2: For AC_BE. |
865 | * CWMAX3: For AC_VO. | 865 | * CWMAX3: For AC_BK. |
866 | */ | 866 | */ |
867 | #define CWMAX_CSR 0x3428 | 867 | #define CWMAX_CSR 0x3428 |
868 | #define CWMAX_CSR_CWMAX0 FIELD32(0x0000000f) | 868 | #define CWMAX_CSR_CWMAX0 FIELD32(0x0000000f) |
@@ -883,14 +883,14 @@ struct hw_pairwise_ta_entry { | |||
883 | 883 | ||
884 | /* | 884 | /* |
885 | * TX_CNTL_CSR: KICK/Abort TX. | 885 | * TX_CNTL_CSR: KICK/Abort TX. |
886 | * KICK_TX_AC0: For AC_BK. | 886 | * KICK_TX_AC0: For AC_VO. |
887 | * KICK_TX_AC1: For AC_BE. | 887 | * KICK_TX_AC1: For AC_VI. |
888 | * KICK_TX_AC2: For AC_VI. | 888 | * KICK_TX_AC2: For AC_BE. |
889 | * KICK_TX_AC3: For AC_VO. | 889 | * KICK_TX_AC3: For AC_BK. |
890 | * ABORT_TX_AC0: For AC_BK. | 890 | * ABORT_TX_AC0: For AC_VO. |
891 | * ABORT_TX_AC1: For AC_BE. | 891 | * ABORT_TX_AC1: For AC_VI. |
892 | * ABORT_TX_AC2: For AC_VI. | 892 | * ABORT_TX_AC2: For AC_BE. |
893 | * ABORT_TX_AC3: For AC_VO. | 893 | * ABORT_TX_AC3: For AC_BK. |
894 | */ | 894 | */ |
895 | #define TX_CNTL_CSR 0x3430 | 895 | #define TX_CNTL_CSR 0x3430 |
896 | #define TX_CNTL_CSR_KICK_TX_AC0 FIELD32(0x00000001) | 896 | #define TX_CNTL_CSR_KICK_TX_AC0 FIELD32(0x00000001) |
@@ -1010,18 +1010,18 @@ struct hw_pairwise_ta_entry { | |||
1010 | #define E2PROM_CSR_LOAD_STATUS FIELD32(0x00000040) | 1010 | #define E2PROM_CSR_LOAD_STATUS FIELD32(0x00000040) |
1011 | 1011 | ||
1012 | /* | 1012 | /* |
1013 | * AC_TXOP_CSR0: AC_BK/AC_BE TXOP register. | 1013 | * AC_TXOP_CSR0: AC_VO/AC_VI TXOP register. |
1014 | * AC0_TX_OP: For AC_BK, in unit of 32us. | 1014 | * AC0_TX_OP: For AC_VO, in unit of 32us. |
1015 | * AC1_TX_OP: For AC_BE, in unit of 32us. | 1015 | * AC1_TX_OP: For AC_VI, in unit of 32us. |
1016 | */ | 1016 | */ |
1017 | #define AC_TXOP_CSR0 0x3474 | 1017 | #define AC_TXOP_CSR0 0x3474 |
1018 | #define AC_TXOP_CSR0_AC0_TX_OP FIELD32(0x0000ffff) | 1018 | #define AC_TXOP_CSR0_AC0_TX_OP FIELD32(0x0000ffff) |
1019 | #define AC_TXOP_CSR0_AC1_TX_OP FIELD32(0xffff0000) | 1019 | #define AC_TXOP_CSR0_AC1_TX_OP FIELD32(0xffff0000) |
1020 | 1020 | ||
1021 | /* | 1021 | /* |
1022 | * AC_TXOP_CSR1: AC_VO/AC_VI TXOP register. | 1022 | * AC_TXOP_CSR1: AC_BE/AC_BK TXOP register. |
1023 | * AC2_TX_OP: For AC_VI, in unit of 32us. | 1023 | * AC2_TX_OP: For AC_BE, in unit of 32us. |
1024 | * AC3_TX_OP: For AC_VO, in unit of 32us. | 1024 | * AC3_TX_OP: For AC_BK, in unit of 32us. |
1025 | */ | 1025 | */ |
1026 | #define AC_TXOP_CSR1 0x3478 | 1026 | #define AC_TXOP_CSR1 0x3478 |
1027 | #define AC_TXOP_CSR1_AC2_TX_OP FIELD32(0x0000ffff) | 1027 | #define AC_TXOP_CSR1_AC2_TX_OP FIELD32(0x0000ffff) |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.h b/drivers/net/wireless/rt2x00/rt73usb.h index 1315ce5c992f..9f6b470414d3 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.h +++ b/drivers/net/wireless/rt2x00/rt73usb.h | |||
@@ -689,10 +689,10 @@ struct hw_pairwise_ta_entry { | |||
689 | 689 | ||
690 | /* | 690 | /* |
691 | * AIFSN_CSR: AIFSN for each EDCA AC. | 691 | * AIFSN_CSR: AIFSN for each EDCA AC. |
692 | * AIFSN0: For AC_BK. | 692 | * AIFSN0: For AC_VO. |
693 | * AIFSN1: For AC_BE. | 693 | * AIFSN1: For AC_VI. |
694 | * AIFSN2: For AC_VI. | 694 | * AIFSN2: For AC_BE. |
695 | * AIFSN3: For AC_VO. | 695 | * AIFSN3: For AC_BK. |
696 | */ | 696 | */ |
697 | #define AIFSN_CSR 0x0400 | 697 | #define AIFSN_CSR 0x0400 |
698 | #define AIFSN_CSR_AIFSN0 FIELD32(0x0000000f) | 698 | #define AIFSN_CSR_AIFSN0 FIELD32(0x0000000f) |
@@ -702,10 +702,10 @@ struct hw_pairwise_ta_entry { | |||
702 | 702 | ||
703 | /* | 703 | /* |
704 | * CWMIN_CSR: CWmin for each EDCA AC. | 704 | * CWMIN_CSR: CWmin for each EDCA AC. |
705 | * CWMIN0: For AC_BK. | 705 | * CWMIN0: For AC_VO. |
706 | * CWMIN1: For AC_BE. | 706 | * CWMIN1: For AC_VI. |
707 | * CWMIN2: For AC_VI. | 707 | * CWMIN2: For AC_BE. |
708 | * CWMIN3: For AC_VO. | 708 | * CWMIN3: For AC_BK. |
709 | */ | 709 | */ |
710 | #define CWMIN_CSR 0x0404 | 710 | #define CWMIN_CSR 0x0404 |
711 | #define CWMIN_CSR_CWMIN0 FIELD32(0x0000000f) | 711 | #define CWMIN_CSR_CWMIN0 FIELD32(0x0000000f) |
@@ -715,10 +715,10 @@ struct hw_pairwise_ta_entry { | |||
715 | 715 | ||
716 | /* | 716 | /* |
717 | * CWMAX_CSR: CWmax for each EDCA AC. | 717 | * CWMAX_CSR: CWmax for each EDCA AC. |
718 | * CWMAX0: For AC_BK. | 718 | * CWMAX0: For AC_VO. |
719 | * CWMAX1: For AC_BE. | 719 | * CWMAX1: For AC_VI. |
720 | * CWMAX2: For AC_VI. | 720 | * CWMAX2: For AC_BE. |
721 | * CWMAX3: For AC_VO. | 721 | * CWMAX3: For AC_BK. |
722 | */ | 722 | */ |
723 | #define CWMAX_CSR 0x0408 | 723 | #define CWMAX_CSR 0x0408 |
724 | #define CWMAX_CSR_CWMAX0 FIELD32(0x0000000f) | 724 | #define CWMAX_CSR_CWMAX0 FIELD32(0x0000000f) |
@@ -727,18 +727,18 @@ struct hw_pairwise_ta_entry { | |||
727 | #define CWMAX_CSR_CWMAX3 FIELD32(0x0000f000) | 727 | #define CWMAX_CSR_CWMAX3 FIELD32(0x0000f000) |
728 | 728 | ||
729 | /* | 729 | /* |
730 | * AC_TXOP_CSR0: AC_BK/AC_BE TXOP register. | 730 | * AC_TXOP_CSR0: AC_VO/AC_VI TXOP register. |
731 | * AC0_TX_OP: For AC_BK, in unit of 32us. | 731 | * AC0_TX_OP: For AC_VO, in unit of 32us. |
732 | * AC1_TX_OP: For AC_BE, in unit of 32us. | 732 | * AC1_TX_OP: For AC_VI, in unit of 32us. |
733 | */ | 733 | */ |
734 | #define AC_TXOP_CSR0 0x040c | 734 | #define AC_TXOP_CSR0 0x040c |
735 | #define AC_TXOP_CSR0_AC0_TX_OP FIELD32(0x0000ffff) | 735 | #define AC_TXOP_CSR0_AC0_TX_OP FIELD32(0x0000ffff) |
736 | #define AC_TXOP_CSR0_AC1_TX_OP FIELD32(0xffff0000) | 736 | #define AC_TXOP_CSR0_AC1_TX_OP FIELD32(0xffff0000) |
737 | 737 | ||
738 | /* | 738 | /* |
739 | * AC_TXOP_CSR1: AC_VO/AC_VI TXOP register. | 739 | * AC_TXOP_CSR1: AC_BE/AC_BK TXOP register. |
740 | * AC2_TX_OP: For AC_VI, in unit of 32us. | 740 | * AC2_TX_OP: For AC_BE, in unit of 32us. |
741 | * AC3_TX_OP: For AC_VO, in unit of 32us. | 741 | * AC3_TX_OP: For AC_BK, in unit of 32us. |
742 | */ | 742 | */ |
743 | #define AC_TXOP_CSR1 0x0410 | 743 | #define AC_TXOP_CSR1 0x0410 |
744 | #define AC_TXOP_CSR1_AC2_TX_OP FIELD32(0x0000ffff) | 744 | #define AC_TXOP_CSR1_AC2_TX_OP FIELD32(0x0000ffff) |