diff options
author | Gertjan van Wingerde <gwingerde@kpnplanet.nl> | 2008-05-10 07:43:33 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:47:32 -0400 |
commit | 61448f88078e813bbaaa58eb775d650c85e7d407 (patch) | |
tree | 1a64fc0de784a3288369f9e554e7e2ec122ebc65 /drivers/net/wireless/rt2x00/rt2400pci.c | |
parent | 61486e0f68d1f8966c09b734566a187d42d65c54 (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/rt2400pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index fb02d118075b..b4310d798f94 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -1373,7 +1373,6 @@ static void rt2400pci_probe_hw_mode(struct rt2x00_dev *rt2x00dev) | |||
1373 | rt2x00dev->hw->flags = IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | | 1373 | rt2x00dev->hw->flags = IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | |
1374 | IEEE80211_HW_SIGNAL_DBM; | 1374 | IEEE80211_HW_SIGNAL_DBM; |
1375 | rt2x00dev->hw->extra_tx_headroom = 0; | 1375 | rt2x00dev->hw->extra_tx_headroom = 0; |
1376 | rt2x00dev->hw->queues = 2; | ||
1377 | 1376 | ||
1378 | SET_IEEE80211_DEV(rt2x00dev->hw, &rt2x00dev_pci(rt2x00dev)->dev); | 1377 | SET_IEEE80211_DEV(rt2x00dev->hw, &rt2x00dev_pci(rt2x00dev)->dev); |
1379 | SET_IEEE80211_PERM_ADDR(rt2x00dev->hw, | 1378 | SET_IEEE80211_PERM_ADDR(rt2x00dev->hw, |
@@ -1620,6 +1619,7 @@ static const struct rt2x00_ops rt2400pci_ops = { | |||
1620 | .max_ap_intf = 1, | 1619 | .max_ap_intf = 1, |
1621 | .eeprom_size = EEPROM_SIZE, | 1620 | .eeprom_size = EEPROM_SIZE, |
1622 | .rf_size = RF_SIZE, | 1621 | .rf_size = RF_SIZE, |
1622 | .tx_queues = NUM_TX_QUEUES, | ||
1623 | .rx = &rt2400pci_queue_rx, | 1623 | .rx = &rt2400pci_queue_rx, |
1624 | .tx = &rt2400pci_queue_tx, | 1624 | .tx = &rt2400pci_queue_tx, |
1625 | .bcn = &rt2400pci_queue_bcn, | 1625 | .bcn = &rt2400pci_queue_bcn, |