diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2009-01-27 18:32:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:34 -0500 |
commit | a2c9b652a12a550d3d8509e9bae43bac396c5076 (patch) | |
tree | 8e871e038bc73465c6eca67f8563e9562d079d56 /drivers/net/wireless/rt2x00/rt2x00dev.c | |
parent | 382fe0f2da78db7833c6a7278e33e694e6e2a6f3 (diff) |
rt2x00: Add kill_tx_queue callback function
provide rt2x00lib the possibility to kill a particular TX queue.
This can be useful when disabling the radio, but more importantly
will allow beaconing to be disabled when mac80211 requests this
(during scanning for example)
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/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index e681d239d43c..05f94e21b423 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -83,9 +83,10 @@ void rt2x00lib_disable_radio(struct rt2x00_dev *rt2x00dev) | |||
83 | return; | 83 | return; |
84 | 84 | ||
85 | /* | 85 | /* |
86 | * Stop the TX queues. | 86 | * Stop the TX queues in mac80211. |
87 | */ | 87 | */ |
88 | ieee80211_stop_queues(rt2x00dev->hw); | 88 | ieee80211_stop_queues(rt2x00dev->hw); |
89 | rt2x00queue_stop_queues(rt2x00dev); | ||
89 | 90 | ||
90 | /* | 91 | /* |
91 | * Disable RX. | 92 | * Disable RX. |
@@ -157,7 +158,7 @@ static void rt2x00lib_intf_scheduled_iter(void *data, u8 *mac, | |||
157 | return; | 158 | return; |
158 | 159 | ||
159 | if (delayed_flags & DELAYED_UPDATE_BEACON) | 160 | if (delayed_flags & DELAYED_UPDATE_BEACON) |
160 | rt2x00queue_update_beacon(rt2x00dev, vif); | 161 | rt2x00queue_update_beacon(rt2x00dev, vif, true); |
161 | 162 | ||
162 | if (delayed_flags & DELAYED_CONFIG_ERP) | 163 | if (delayed_flags & DELAYED_CONFIG_ERP) |
163 | rt2x00lib_config_erp(rt2x00dev, intf, &conf); | 164 | rt2x00lib_config_erp(rt2x00dev, intf, &conf); |