summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/testmode.c
diff options
context:
space:
mode:
authorIgal Chernobelsky <igalc@ti.com>2013-09-09 09:24:35 (GMT)
committerLuciano Coelho <luciano.coelho@intel.com>2013-10-23 06:47:40 (GMT)
commit4b6741443264d20aa7a1cb52185a7d13589590fe (patch)
tree22971a93f9423efae3c09abf477d5eec5726740d /drivers/net/wireless/ti/wlcore/testmode.c
parent71e996bef90b23919f627a38367b9e8b44b77d37 (diff)
downloadlinux-fsl-qoriq-4b6741443264d20aa7a1cb52185a7d13589590fe.tar.xz
wlcore: fix interrogate command length
Change interrogate command prototype to have command size and returned buffer length. This fixes the issue when command parameters are needed to be passed to FW in addition to acx header as in the case with get RSSI command, where role_id has to be passed. Signed-off-by: Igal Chernobelsky <igalc@ti.com> Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/testmode.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/testmode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/testmode.c b/drivers/net/wireless/ti/wlcore/testmode.c
index a3b7d95..ddad58f 100644
--- a/drivers/net/wireless/ti/wlcore/testmode.c
+++ b/drivers/net/wireless/ti/wlcore/testmode.c
@@ -179,7 +179,8 @@ static int wl1271_tm_cmd_interrogate(struct wl1271 *wl, struct nlattr *tb[])
goto out_sleep;
}
- ret = wl1271_cmd_interrogate(wl, ie_id, cmd, sizeof(*cmd));
+ ret = wl1271_cmd_interrogate(wl, ie_id, cmd,
+ sizeof(struct acx_header), sizeof(*cmd));
if (ret < 0) {
wl1271_warning("testmode cmd interrogate failed: %d", ret);
goto out_free;