Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159183
b: refs/heads/master
c: 270b758
h: refs/heads/master
i:
  159181: 255813e
  159179: 46254c0
  159175: be62224
  159167: fef3d96
v: v3
  • Loading branch information
Kalle Valo authored and John W. Linville committed Jul 24, 2009
1 parent c2f4996 commit 65322db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 55 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f298c282a5233126ffe6385c02a9e79f695bed0f
refs/heads/master: 270b7588b376968d4db3af01e6d9907814c45552
54 changes: 0 additions & 54 deletions trunk/drivers/net/wireless/wl12xx/wl1251_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 65322db

Please sign in to comment.