提交 270b7588 编写于 作者: K Kalle Valo 提交者: John W. Linville

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: NKalle Valo <kalle.valo@nokia.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 f298c282
......@@ -246,60 +246,6 @@ static void wl1251_filter_work(struct work_struct *work)
mutex_unlock(&wl->mutex);
}
int wl1251_plt_start(struct wl1251 *wl)
{
int ret;
mutex_lock(&wl->mutex);
wl1251_notice("power up");
if (wl->state != WL1251_STATE_OFF) {
wl1251_error("cannot go into PLT state because not "
"in off state: %d", wl->state);
return -EBUSY;
}
wl->state = WL1251_STATE_PLT;
ret = wl1251_chip_wakeup(wl);
if (ret < 0)
return ret;
ret = wl->chip.op_boot(wl);
if (ret < 0)
return ret;
wl1251_notice("firmware booted in PLT mode (%s)", wl->chip.fw_ver);
ret = wl->chip.op_plt_init(wl);
if (ret < 0)
return ret;
return 0;
}
int wl1251_plt_stop(struct wl1251 *wl)
{
mutex_lock(&wl->mutex);
wl1251_notice("power down");
if (wl->state != WL1251_STATE_PLT) {
wl1251_error("cannot power down because not in PLT "
"state: %d", wl->state);
return -EBUSY;
}
wl1251_disable_interrupts(wl);
wl1251_power_off(wl);
wl->state = WL1251_STATE_OFF;
return 0;
}
static int wl1251_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
{
struct wl1251 *wl = hw->priv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册