diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2400pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index 6f898913492a..9c13a4e0e731 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -1089,6 +1089,14 @@ static void rt2400pci_write_beacon(struct queue_entry *entry) | |||
1089 | rt2x00_desc_read(entry_priv->desc, 1, &word); | 1089 | rt2x00_desc_read(entry_priv->desc, 1, &word); |
1090 | rt2x00_set_field32(&word, TXD_W1_BUFFER_ADDRESS, skbdesc->skb_dma); | 1090 | rt2x00_set_field32(&word, TXD_W1_BUFFER_ADDRESS, skbdesc->skb_dma); |
1091 | rt2x00_desc_write(entry_priv->desc, 1, word); | 1091 | rt2x00_desc_write(entry_priv->desc, 1, word); |
1092 | |||
1093 | /* | ||
1094 | * Enable beaconing again. | ||
1095 | */ | ||
1096 | rt2x00_set_field32(®, CSR14_TSF_COUNT, 1); | ||
1097 | rt2x00_set_field32(®, CSR14_TBCN, 1); | ||
1098 | rt2x00_set_field32(®, CSR14_BEACON_GEN, 1); | ||
1099 | rt2x00pci_register_write(rt2x00dev, CSR14, reg); | ||
1092 | } | 1100 | } |
1093 | 1101 | ||
1094 | static void rt2400pci_kick_tx_queue(struct rt2x00_dev *rt2x00dev, | 1102 | static void rt2400pci_kick_tx_queue(struct rt2x00_dev *rt2x00dev, |
@@ -1096,17 +1104,6 @@ static void rt2400pci_kick_tx_queue(struct rt2x00_dev *rt2x00dev, | |||
1096 | { | 1104 | { |
1097 | u32 reg; | 1105 | u32 reg; |
1098 | 1106 | ||
1099 | if (queue == QID_BEACON) { | ||
1100 | rt2x00pci_register_read(rt2x00dev, CSR14, ®); | ||
1101 | if (!rt2x00_get_field32(reg, CSR14_BEACON_GEN)) { | ||
1102 | rt2x00_set_field32(®, CSR14_TSF_COUNT, 1); | ||
1103 | rt2x00_set_field32(®, CSR14_TBCN, 1); | ||
1104 | rt2x00_set_field32(®, CSR14_BEACON_GEN, 1); | ||
1105 | rt2x00pci_register_write(rt2x00dev, CSR14, reg); | ||
1106 | } | ||
1107 | return; | ||
1108 | } | ||
1109 | |||
1110 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); | 1107 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); |
1111 | rt2x00_set_field32(®, TXCSR0_KICK_PRIO, (queue == QID_AC_BE)); | 1108 | rt2x00_set_field32(®, TXCSR0_KICK_PRIO, (queue == QID_AC_BE)); |
1112 | rt2x00_set_field32(®, TXCSR0_KICK_TX, (queue == QID_AC_BK)); | 1109 | rt2x00_set_field32(®, TXCSR0_KICK_TX, (queue == QID_AC_BK)); |