rt2x00: Clean up all driver's kick_tx_queue callback functions.
All of the driver's kick_tx_queue callback functions treat the TX queue for beacons in a special manner. Clean this up by integrating the kicking of the beacon queue into the write_beacon callback function, and let the generic code no longer call the kick_tx_queue callback function when updating the beacon. Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
2de64dd22d
commit
d61cb26696
8 changed files with 83 additions and 134 deletions
|
@ -704,6 +704,14 @@ static void rt2800pci_write_beacon(struct queue_entry *entry)
|
|||
beacon_base + skbdesc->desc_len,
|
||||
entry->skb->data, entry->skb->len);
|
||||
|
||||
/*
|
||||
* Enable beaconing again.
|
||||
*/
|
||||
rt2x00_set_field32(®, BCN_TIME_CFG_TSF_TICKING, 1);
|
||||
rt2x00_set_field32(®, BCN_TIME_CFG_TBTT_ENABLE, 1);
|
||||
rt2x00_set_field32(®, BCN_TIME_CFG_BEACON_GEN, 1);
|
||||
rt2800_register_write(rt2x00dev, BCN_TIME_CFG, reg);
|
||||
|
||||
/*
|
||||
* Clean up beacon skb.
|
||||
*/
|
||||
|
@ -716,18 +724,6 @@ static void rt2800pci_kick_tx_queue(struct rt2x00_dev *rt2x00dev,
|
|||
{
|
||||
struct data_queue *queue;
|
||||
unsigned int idx, qidx = 0;
|
||||
u32 reg;
|
||||
|
||||
if (queue_idx == QID_BEACON) {
|
||||
rt2800_register_read(rt2x00dev, BCN_TIME_CFG, ®);
|
||||
if (!rt2x00_get_field32(reg, BCN_TIME_CFG_BEACON_GEN)) {
|
||||
rt2x00_set_field32(®, BCN_TIME_CFG_TSF_TICKING, 1);
|
||||
rt2x00_set_field32(®, BCN_TIME_CFG_TBTT_ENABLE, 1);
|
||||
rt2x00_set_field32(®, BCN_TIME_CFG_BEACON_GEN, 1);
|
||||
rt2800_register_write(rt2x00dev, BCN_TIME_CFG, reg);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (queue_idx > QID_HCCA && queue_idx != QID_MGMT)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue