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/rt2x00lib.h | |
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/rt2x00lib.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index 34efe4653549..a631613177d0 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -123,9 +123,11 @@ int rt2x00queue_write_tx_frame(struct data_queue *queue, struct sk_buff *skb); | |||
123 | * rt2x00queue_update_beacon - Send new beacon from mac80211 to hardware | 123 | * rt2x00queue_update_beacon - Send new beacon from mac80211 to hardware |
124 | * @rt2x00dev: Pointer to &struct rt2x00_dev. | 124 | * @rt2x00dev: Pointer to &struct rt2x00_dev. |
125 | * @vif: Interface for which the beacon should be updated. | 125 | * @vif: Interface for which the beacon should be updated. |
126 | * @enable_beacon: Enable beaconing | ||
126 | */ | 127 | */ |
127 | int rt2x00queue_update_beacon(struct rt2x00_dev *rt2x00dev, | 128 | int rt2x00queue_update_beacon(struct rt2x00_dev *rt2x00dev, |
128 | struct ieee80211_vif *vif); | 129 | struct ieee80211_vif *vif, |
130 | const bool enable_beacon); | ||
129 | 131 | ||
130 | /** | 132 | /** |
131 | * rt2x00queue_index_inc - Index incrementation function | 133 | * rt2x00queue_index_inc - Index incrementation function |
@@ -139,6 +141,15 @@ int rt2x00queue_update_beacon(struct rt2x00_dev *rt2x00dev, | |||
139 | void rt2x00queue_index_inc(struct data_queue *queue, enum queue_index index); | 141 | void rt2x00queue_index_inc(struct data_queue *queue, enum queue_index index); |
140 | 142 | ||
141 | /** | 143 | /** |
144 | * rt2x00queue_stop_queues - Halt all data queues | ||
145 | * @rt2x00dev: Pointer to &struct rt2x00_dev. | ||
146 | * | ||
147 | * This function will loop through all available queues to stop | ||
148 | * any pending outgoing frames. | ||
149 | */ | ||
150 | void rt2x00queue_stop_queues(struct rt2x00_dev *rt2x00dev); | ||
151 | |||
152 | /** | ||
142 | * rt2x00queue_init_queues - Initialize all data queues | 153 | * rt2x00queue_init_queues - Initialize all data queues |
143 | * @rt2x00dev: Pointer to &struct rt2x00_dev. | 154 | * @rt2x00dev: Pointer to &struct rt2x00_dev. |
144 | * | 155 | * |