Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224268
b: refs/heads/master
c: e285a52
h: refs/heads/master
v: v3
  • Loading branch information
Eliad Peller authored and John W. Linville committed Nov 15, 2010
1 parent 989c749 commit cd13e92
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ccc83b046c03378bbaf7cf095d8d7e9b9abb24c5
refs/heads/master: e285a5250c0772c5596a9137041a96b2c1f744d6
12 changes: 12 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1271_testmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ enum wl1271_tm_commands {
WL1271_TM_CMD_CONFIGURE,
WL1271_TM_CMD_NVS_PUSH,
WL1271_TM_CMD_SET_PLT_MODE,
WL1271_TM_CMD_RECOVER,

__WL1271_TM_CMD_AFTER_LAST
};
Expand Down Expand Up @@ -248,6 +249,15 @@ static int wl1271_tm_cmd_set_plt_mode(struct wl1271 *wl, struct nlattr *tb[])
return ret;
}

static int wl1271_tm_cmd_recover(struct wl1271 *wl, struct nlattr *tb[])
{
wl1271_debug(DEBUG_TESTMODE, "testmode cmd recover");

ieee80211_queue_work(wl->hw, &wl->recovery_work);

return 0;
}

int wl1271_tm_cmd(struct ieee80211_hw *hw, void *data, int len)
{
struct wl1271 *wl = hw->priv;
Expand All @@ -272,6 +282,8 @@ int wl1271_tm_cmd(struct ieee80211_hw *hw, void *data, int len)
return wl1271_tm_cmd_nvs_push(wl, tb);
case WL1271_TM_CMD_SET_PLT_MODE:
return wl1271_tm_cmd_set_plt_mode(wl, tb);
case WL1271_TM_CMD_RECOVER:
return wl1271_tm_cmd_recover(wl, tb);
default:
return -EOPNOTSUPP;
}
Expand Down

0 comments on commit cd13e92

Please sign in to comment.