diff options
author | Eliad Peller <eliad@wizery.com> | 2011-12-06 11:15:07 +0100 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-12-08 11:32:36 +0100 |
commit | 3dbb5846db1f5df3619b927cc2a7dcaf65a38f1e (patch) | |
tree | c87aa1d7bc652380c9578d76071e99079f21a521 | |
parent | wl12xx: remove redundant commands from plt init (diff) | |
download | linux-3dbb5846db1f5df3619b927cc2a7dcaf65a38f1e.tar.xz linux-3dbb5846db1f5df3619b927cc2a7dcaf65a38f1e.zip |
wl12xx: send testmode reply in wl1271_tm_cmd_interrogate
wl1271_tm_cmd_interrogate creates a reply skb, but doesn't
send it (and thus just leaks it).
Add the missing cfg80211_testmode_reply() call.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
-rw-r--r-- | drivers/net/wireless/wl12xx/testmode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/testmode.c b/drivers/net/wireless/wl12xx/testmode.c index 2f9ebff2ded3..978cf2de713d 100644 --- a/drivers/net/wireless/wl12xx/testmode.c +++ b/drivers/net/wireless/wl12xx/testmode.c @@ -176,6 +176,9 @@ static int wl1271_tm_cmd_interrogate(struct wl1271 *wl, struct nlattr *tb[]) } NLA_PUT(skb, WL1271_TM_ATTR_DATA, sizeof(*cmd), cmd); + ret = cfg80211_testmode_reply(skb); + if (ret < 0) + goto out_free; out_free: kfree(cmd); |