diff options
author | Eliad Peller <eliad@wizery.com> | 2011-12-06 12:15:07 +0200 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-12-08 12:32:36 +0200 |
commit | 3dbb5846db1f5df3619b927cc2a7dcaf65a38f1e (patch) | |
tree | c87aa1d7bc652380c9578d76071e99079f21a521 | |
parent | 188e7f54c38b9bf144ddc81b4b734cb6ea49f31e (diff) |
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 2f9ebff2ded..978cf2de713 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); |