diff options
author | Kalle Valo <kalle.valo@nokia.com> | 2009-07-21 07:26:01 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-24 15:05:29 -0400 |
commit | 270b7588b376968d4db3af01e6d9907814c45552 (patch) | |
tree | a03bf15cf0dc06a68b3d5fd349b94021754d24ab /drivers/net | |
parent | f298c282a5233126ffe6385c02a9e79f695bed0f (diff) |
wl1251: remove wl1251_plt_start/stop()
This Production Line Testing code is currently unused and can be removed.
It can be reintroduced when nl80211 test mode implemented for the driver.
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_main.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_main.c b/drivers/net/wireless/wl12xx/wl1251_main.c index 509cbef5e271..da4c688c46af 100644 --- a/drivers/net/wireless/wl12xx/wl1251_main.c +++ b/drivers/net/wireless/wl12xx/wl1251_main.c | |||
@@ -246,60 +246,6 @@ out: | |||
246 | mutex_unlock(&wl->mutex); | 246 | mutex_unlock(&wl->mutex); |
247 | } | 247 | } |
248 | 248 | ||
249 | int wl1251_plt_start(struct wl1251 *wl) | ||
250 | { | ||
251 | int ret; | ||
252 | |||
253 | mutex_lock(&wl->mutex); | ||
254 | |||
255 | wl1251_notice("power up"); | ||
256 | |||
257 | if (wl->state != WL1251_STATE_OFF) { | ||
258 | wl1251_error("cannot go into PLT state because not " | ||
259 | "in off state: %d", wl->state); | ||
260 | return -EBUSY; | ||
261 | } | ||
262 | |||
263 | wl->state = WL1251_STATE_PLT; | ||
264 | |||
265 | ret = wl1251_chip_wakeup(wl); | ||
266 | if (ret < 0) | ||
267 | return ret; | ||
268 | |||
269 | ret = wl->chip.op_boot(wl); | ||
270 | if (ret < 0) | ||
271 | return ret; | ||
272 | |||
273 | wl1251_notice("firmware booted in PLT mode (%s)", wl->chip.fw_ver); | ||
274 | |||
275 | ret = wl->chip.op_plt_init(wl); | ||
276 | if (ret < 0) | ||
277 | return ret; | ||
278 | |||
279 | return 0; | ||
280 | } | ||
281 | |||
282 | int wl1251_plt_stop(struct wl1251 *wl) | ||
283 | { | ||
284 | mutex_lock(&wl->mutex); | ||
285 | |||
286 | wl1251_notice("power down"); | ||
287 | |||
288 | if (wl->state != WL1251_STATE_PLT) { | ||
289 | wl1251_error("cannot power down because not in PLT " | ||
290 | "state: %d", wl->state); | ||
291 | return -EBUSY; | ||
292 | } | ||
293 | |||
294 | wl1251_disable_interrupts(wl); | ||
295 | wl1251_power_off(wl); | ||
296 | |||
297 | wl->state = WL1251_STATE_OFF; | ||
298 | |||
299 | return 0; | ||
300 | } | ||
301 | |||
302 | |||
303 | static int wl1251_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | 249 | static int wl1251_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb) |
304 | { | 250 | { |
305 | struct wl1251 *wl = hw->priv; | 251 | struct wl1251 *wl = hw->priv; |