diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2010-12-13 06:34:54 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-13 15:23:35 -0500 |
commit | dbba306f2ae574450a7a5133d6637fe6f5fafc72 (patch) | |
tree | f9f0e56125d210d4d8ef2434687435a4566b555e /drivers/net/wireless/rt2x00/rt2800pci.c | |
parent | 5450b7e2f0b47e52175b31399d8186a74ef3c46d (diff) |
rt2x00: Reorganize queue callback functions
As part of the queue refactoring, change the queue callback
function names to have 3 different actions: start, kick & stop.
We can now also remove the STATE_RADIO_RX_ON/STATE_RADIO_RX_OFF
device_state flags, and replace the usage with using the
start_queue/stop_queue callback functions.
This streamlines the RX queue handling to the
similar approach as all other queues.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index a7105974a2a1..15eef7212bb1 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -537,12 +537,6 @@ static int rt2800pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
537 | rt2800pci_disable_radio(rt2x00dev); | 537 | rt2800pci_disable_radio(rt2x00dev); |
538 | rt2800pci_set_state(rt2x00dev, STATE_SLEEP); | 538 | rt2800pci_set_state(rt2x00dev, STATE_SLEEP); |
539 | break; | 539 | break; |
540 | case STATE_RADIO_RX_ON: | ||
541 | rt2800pci_start_queue(rt2x00dev->rx); | ||
542 | break; | ||
543 | case STATE_RADIO_RX_OFF: | ||
544 | rt2800pci_stop_queue(rt2x00dev->rx); | ||
545 | break; | ||
546 | case STATE_RADIO_IRQ_ON: | 540 | case STATE_RADIO_IRQ_ON: |
547 | case STATE_RADIO_IRQ_ON_ISR: | 541 | case STATE_RADIO_IRQ_ON_ISR: |
548 | case STATE_RADIO_IRQ_OFF: | 542 | case STATE_RADIO_IRQ_OFF: |
@@ -1004,11 +998,12 @@ static const struct rt2x00lib_ops rt2800pci_rt2x00_ops = { | |||
1004 | .link_stats = rt2800_link_stats, | 998 | .link_stats = rt2800_link_stats, |
1005 | .reset_tuner = rt2800_reset_tuner, | 999 | .reset_tuner = rt2800_reset_tuner, |
1006 | .link_tuner = rt2800_link_tuner, | 1000 | .link_tuner = rt2800_link_tuner, |
1001 | .start_queue = rt2800pci_start_queue, | ||
1002 | .kick_queue = rt2800pci_kick_queue, | ||
1003 | .stop_queue = rt2800pci_stop_queue, | ||
1007 | .write_tx_desc = rt2800pci_write_tx_desc, | 1004 | .write_tx_desc = rt2800pci_write_tx_desc, |
1008 | .write_tx_data = rt2800_write_tx_data, | 1005 | .write_tx_data = rt2800_write_tx_data, |
1009 | .write_beacon = rt2800_write_beacon, | 1006 | .write_beacon = rt2800_write_beacon, |
1010 | .kick_tx_queue = rt2800pci_kick_queue, | ||
1011 | .kill_tx_queue = rt2800pci_stop_queue, | ||
1012 | .fill_rxdone = rt2800pci_fill_rxdone, | 1007 | .fill_rxdone = rt2800pci_fill_rxdone, |
1013 | .config_shared_key = rt2800_config_shared_key, | 1008 | .config_shared_key = rt2800_config_shared_key, |
1014 | .config_pairwise_key = rt2800_config_pairwise_key, | 1009 | .config_pairwise_key = rt2800_config_pairwise_key, |