diff options
author | Arik Nemtsov <arik@wizery.com> | 2012-06-25 15:26:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-10 12:10:13 -0400 |
commit | fd92dc5d5daf0637507cff78a6fbfaf099597007 (patch) | |
tree | e7d2771df603c5dd2d8df1dc15bade130a37d288 /drivers/net/wireless/ti | |
parent | 8cdc44aab2dd83cf09512c7b64287e5f54bf117b (diff) |
wlcore: remove recover cmd from testmode
This command is buggy (doesn't take the mutex) and unused. Instead, the
"start_recovery" file is used for the same purpose. Remove the code but
keep the command constant to avoid breaking the testmode ABI.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/testmode.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/wireless/ti/wlcore/testmode.c b/drivers/net/wireless/ti/wlcore/testmode.c index eeb339d61d1e..d6f57e2c03cf 100644 --- a/drivers/net/wireless/ti/wlcore/testmode.c +++ b/drivers/net/wireless/ti/wlcore/testmode.c | |||
@@ -40,7 +40,7 @@ enum wl1271_tm_commands { | |||
40 | WL1271_TM_CMD_CONFIGURE, | 40 | WL1271_TM_CMD_CONFIGURE, |
41 | WL1271_TM_CMD_NVS_PUSH, /* Not in use. Keep to not break ABI */ | 41 | WL1271_TM_CMD_NVS_PUSH, /* Not in use. Keep to not break ABI */ |
42 | WL1271_TM_CMD_SET_PLT_MODE, | 42 | WL1271_TM_CMD_SET_PLT_MODE, |
43 | WL1271_TM_CMD_RECOVER, | 43 | WL1271_TM_CMD_RECOVER, /* Not in use. Keep to not break ABI */ |
44 | WL1271_TM_CMD_GET_MAC, | 44 | WL1271_TM_CMD_GET_MAC, |
45 | 45 | ||
46 | __WL1271_TM_CMD_AFTER_LAST | 46 | __WL1271_TM_CMD_AFTER_LAST |
@@ -272,15 +272,6 @@ static int wl1271_tm_cmd_set_plt_mode(struct wl1271 *wl, struct nlattr *tb[]) | |||
272 | return ret; | 272 | return ret; |
273 | } | 273 | } |
274 | 274 | ||
275 | static int wl1271_tm_cmd_recover(struct wl1271 *wl, struct nlattr *tb[]) | ||
276 | { | ||
277 | wl1271_debug(DEBUG_TESTMODE, "testmode cmd recover"); | ||
278 | |||
279 | wl12xx_queue_recovery_work(wl); | ||
280 | |||
281 | return 0; | ||
282 | } | ||
283 | |||
284 | static int wl12xx_tm_cmd_get_mac(struct wl1271 *wl, struct nlattr *tb[]) | 275 | static int wl12xx_tm_cmd_get_mac(struct wl1271 *wl, struct nlattr *tb[]) |
285 | { | 276 | { |
286 | struct sk_buff *skb; | 277 | struct sk_buff *skb; |
@@ -350,8 +341,6 @@ int wl1271_tm_cmd(struct ieee80211_hw *hw, void *data, int len) | |||
350 | return wl1271_tm_cmd_configure(wl, tb); | 341 | return wl1271_tm_cmd_configure(wl, tb); |
351 | case WL1271_TM_CMD_SET_PLT_MODE: | 342 | case WL1271_TM_CMD_SET_PLT_MODE: |
352 | return wl1271_tm_cmd_set_plt_mode(wl, tb); | 343 | return wl1271_tm_cmd_set_plt_mode(wl, tb); |
353 | case WL1271_TM_CMD_RECOVER: | ||
354 | return wl1271_tm_cmd_recover(wl, tb); | ||
355 | case WL1271_TM_CMD_GET_MAC: | 344 | case WL1271_TM_CMD_GET_MAC: |
356 | return wl12xx_tm_cmd_get_mac(wl, tb); | 345 | return wl12xx_tm_cmd_get_mac(wl, tb); |
357 | default: | 346 | default: |