aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/testmode.c
diff options
context:
space:
mode:
authorYair Shapira <yair.shapira@ti.com>2012-07-11 18:48:04 +0300
committerLuciano Coelho <coelho@ti.com>2012-07-18 15:08:22 +0300
commit7019c80eead86d246a7b6697011bc37b2bdd8539 (patch)
treefe56e71ade82d25159da1cbbd826687e0f170b30 /drivers/net/wireless/ti/wlcore/testmode.c
parentwlcore: use basic rates for non-data packets (diff)
downloadlinux-dev-7019c80eead86d246a7b6697011bc37b2bdd8539.tar.xz
linux-dev-7019c80eead86d246a7b6697011bc37b2bdd8539.zip
wlcore: add plt_mode including new PLT_FEM_DETECT
add wl->plt_mode that is used to indicate different plt working modes: this will be used to implement calibrator side auto fem detection where driver asks firmware to detect the wlan fem radio type and returns it to calibrator. this is not implemented yet and plt_modes: PLT_ON and PLT_FEM_DETECT currently behave the same. Signed-off-by: Yair Shapira <yair.shapira@ti.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/testmode.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/testmode.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ti/wlcore/testmode.c b/drivers/net/wireless/ti/wlcore/testmode.c
index d6f57e2c03cf..a204c938c79e 100644
--- a/drivers/net/wireless/ti/wlcore/testmode.c
+++ b/drivers/net/wireless/ti/wlcore/testmode.c
@@ -258,11 +258,12 @@ static int wl1271_tm_cmd_set_plt_mode(struct wl1271 *wl, struct nlattr *tb[])
val = nla_get_u32(tb[WL1271_TM_ATTR_PLT_MODE]);
switch (val) {
- case 0:
+ case PLT_OFF:
ret = wl1271_plt_stop(wl);
break;
- case 1:
- ret = wl1271_plt_start(wl);
+ case PLT_ON:
+ case PLT_FEM_DETECT:
+ ret = wl1271_plt_start(wl, val);
break;
default:
ret = -EINVAL;