diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index fdbd0ef2be4b..0dac1f5b5c4a 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1094,11 +1094,11 @@ static int rt2500usb_get_tx_data_len(struct rt2x00_dev *rt2x00dev, | |||
1094 | * TX data initialization | 1094 | * TX data initialization |
1095 | */ | 1095 | */ |
1096 | static void rt2500usb_kick_tx_queue(struct rt2x00_dev *rt2x00dev, | 1096 | static void rt2500usb_kick_tx_queue(struct rt2x00_dev *rt2x00dev, |
1097 | const unsigned int queue) | 1097 | const enum data_queue_qid queue) |
1098 | { | 1098 | { |
1099 | u16 reg; | 1099 | u16 reg; |
1100 | 1100 | ||
1101 | if (queue != RT2X00_BCN_QUEUE_BEACON) | 1101 | if (queue != QID_BEACON) |
1102 | return; | 1102 | return; |
1103 | 1103 | ||
1104 | rt2500usb_register_read(rt2x00dev, TXRX_CSR19, ®); | 1104 | rt2500usb_register_read(rt2x00dev, TXRX_CSR19, ®); |
@@ -1720,12 +1720,6 @@ static int rt2500usb_beacon_update(struct ieee80211_hw *hw, | |||
1720 | rt2x00_set_field16(®, TXRX_CSR19_BEACON_GEN, 0); | 1720 | rt2x00_set_field16(®, TXRX_CSR19_BEACON_GEN, 0); |
1721 | rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg); | 1721 | rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg); |
1722 | 1722 | ||
1723 | /* | ||
1724 | * mac80211 doesn't provide the control->queue variable | ||
1725 | * for beacons. Set our own queue identification so | ||
1726 | * it can be used during descriptor initialization. | ||
1727 | */ | ||
1728 | control->queue = RT2X00_BCN_QUEUE_BEACON; | ||
1729 | rt2x00lib_write_tx_desc(rt2x00dev, skb, control); | 1723 | rt2x00lib_write_tx_desc(rt2x00dev, skb, control); |
1730 | 1724 | ||
1731 | /* | 1725 | /* |
@@ -1757,7 +1751,7 @@ static int rt2500usb_beacon_update(struct ieee80211_hw *hw, | |||
1757 | /* | 1751 | /* |
1758 | * Enable beacon generation. | 1752 | * Enable beacon generation. |
1759 | */ | 1753 | */ |
1760 | rt2500usb_kick_tx_queue(rt2x00dev, control->queue); | 1754 | rt2500usb_kick_tx_queue(rt2x00dev, QID_BEACON); |
1761 | 1755 | ||
1762 | return 0; | 1756 | return 0; |
1763 | } | 1757 | } |