aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500usb.c
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@kpnplanet.nl>2008-05-10 07:43:33 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:47:32 -0400
commit61448f88078e813bbaaa58eb775d650c85e7d407 (patch)
tree1a64fc0de784a3288369f9e554e7e2ec122ebc65 /drivers/net/wireless/rt2x00/rt2500usb.c
parent61486e0f68d1f8966c09b734566a187d42d65c54 (diff)
rt2x00: Fix queue related oops in case of deselected mac80211 multi-queue feature.
With the integration of the mac80211 multiqueue patches it has become possible that the mac80211 layer modifies the number of TX queues that is stored inside the ieee80211_hw structure, especially when multi-queue is not selected. The rt2x00 drivers are not well suited to handle that situation, as they allocate the queue structures before mac80211 has modified the number of queues it is going to use, and also expect the number of allocated queues to match the hardware implementation. Hence, ensure that rt2x00 maintains by itself the number of queues that the hardware supports, and, at the same time, making is not dependent on the preservation of contents inside a mac80211 structure. Signed-off-by: Gertjan van Wingerde <gwingerde@kpnplanet.nl> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 7df06ece1b45..661cf3d7212a 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -1590,7 +1590,6 @@ static void rt2500usb_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
1590 IEEE80211_HW_SIGNAL_DBM; 1590 IEEE80211_HW_SIGNAL_DBM;
1591 1591
1592 rt2x00dev->hw->extra_tx_headroom = TXD_DESC_SIZE; 1592 rt2x00dev->hw->extra_tx_headroom = TXD_DESC_SIZE;
1593 rt2x00dev->hw->queues = 2;
1594 1593
1595 SET_IEEE80211_DEV(rt2x00dev->hw, &rt2x00dev_usb(rt2x00dev)->dev); 1594 SET_IEEE80211_DEV(rt2x00dev->hw, &rt2x00dev_usb(rt2x00dev)->dev);
1596 SET_IEEE80211_PERM_ADDR(rt2x00dev->hw, 1595 SET_IEEE80211_PERM_ADDR(rt2x00dev->hw,
@@ -1826,6 +1825,7 @@ static const struct rt2x00_ops rt2500usb_ops = {
1826 .max_ap_intf = 1, 1825 .max_ap_intf = 1,
1827 .eeprom_size = EEPROM_SIZE, 1826 .eeprom_size = EEPROM_SIZE,
1828 .rf_size = RF_SIZE, 1827 .rf_size = RF_SIZE,
1828 .tx_queues = NUM_TX_QUEUES,
1829 .rx = &rt2500usb_queue_rx, 1829 .rx = &rt2500usb_queue_rx,
1830 .tx = &rt2500usb_queue_tx, 1830 .tx = &rt2500usb_queue_tx,
1831 .bcn = &rt2500usb_queue_bcn, 1831 .bcn = &rt2500usb_queue_bcn,