diff options
author | Igal Chernobelsky <igalc@ti.com> | 2013-09-09 12:24:35 +0300 |
---|---|---|
committer | Luciano Coelho <luciano.coelho@intel.com> | 2013-10-23 09:47:40 +0300 |
commit | 4b6741443264d20aa7a1cb52185a7d13589590fe (patch) | |
tree | 22971a93f9423efae3c09abf477d5eec5726740d /drivers/net/wireless/ti/wlcore/testmode.c | |
parent | 71e996bef90b23919f627a38367b9e8b44b77d37 (diff) | |
download | blackbird-obmc-linux-4b6741443264d20aa7a1cb52185a7d13589590fe.tar.gz blackbird-obmc-linux-4b6741443264d20aa7a1cb52185a7d13589590fe.zip |
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.c | 3 |
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 a3b7d950d8e9..ddad58f614da 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; |