diff options
author | Ivo van Doorn <IvDoorn@gmail.com> | 2010-11-06 10:48:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-15 13:26:35 -0500 |
commit | ea175ee26268370ca07aff91cf6ba1e0f1a3bd36 (patch) | |
tree | a678a381f91f6ac139101aa4d2091cd1073d7c65 /drivers/net/wireless/rt2x00/rt2x00config.c | |
parent | 8be4eed0ea7d8ef38692de878043a949e9db16e8 (diff) |
rt2x00: Remove rt2x00lib_toggle_rx
As part of the queue refactoring, the rt2x00lib_toggle_rx
can be removed and replaced with the call directly to
the set_device_state callback function.
We can remove the STATE_RADIO_RX_ON_LINK and
STATE_RADIO_RX_OFF_LINK, as it was only used for
special behavior inside rt2x00lib rather then the
drivers.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00config.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00config.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00config.c b/drivers/net/wireless/rt2x00/rt2x00config.c index fca8f22896a5..a238e908c854 100644 --- a/drivers/net/wireless/rt2x00/rt2x00config.c +++ b/drivers/net/wireless/rt2x00/rt2x00config.c | |||
@@ -146,7 +146,8 @@ void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, | |||
146 | * else the changes will be ignored by the device. | 146 | * else the changes will be ignored by the device. |
147 | */ | 147 | */ |
148 | if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) | 148 | if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) |
149 | rt2x00lib_toggle_rx(rt2x00dev, STATE_RADIO_RX_OFF_LINK); | 149 | rt2x00dev->ops->lib->set_device_state(rt2x00dev, |
150 | STATE_RADIO_RX_OFF); | ||
150 | 151 | ||
151 | /* | 152 | /* |
152 | * Write new antenna setup to device and reset the link tuner. | 153 | * Write new antenna setup to device and reset the link tuner. |
@@ -160,7 +161,8 @@ void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, | |||
160 | memcpy(active, &config, sizeof(config)); | 161 | memcpy(active, &config, sizeof(config)); |
161 | 162 | ||
162 | if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) | 163 | if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) |
163 | rt2x00lib_toggle_rx(rt2x00dev, STATE_RADIO_RX_ON_LINK); | 164 | rt2x00dev->ops->lib->set_device_state(rt2x00dev, |
165 | STATE_RADIO_RX_ON); | ||
164 | } | 166 | } |
165 | 167 | ||
166 | void rt2x00lib_config(struct rt2x00_dev *rt2x00dev, | 168 | void rt2x00lib_config(struct rt2x00_dev *rt2x00dev, |