aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/testmode.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2011-12-06 05:15:07 -0500
committerLuciano Coelho <coelho@ti.com>2011-12-08 05:32:36 -0500
commit3dbb5846db1f5df3619b927cc2a7dcaf65a38f1e (patch)
treec87aa1d7bc652380c9578d76071e99079f21a521 /drivers/net/wireless/wl12xx/testmode.c
parent188e7f54c38b9bf144ddc81b4b734cb6ea49f31e (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>
Diffstat (limited to 'drivers/net/wireless/wl12xx/testmode.c')
-rw-r--r--drivers/net/wireless/wl12xx/testmode.c3
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[])
176 } 176 }
177 177
178 NLA_PUT(skb, WL1271_TM_ATTR_DATA, sizeof(*cmd), cmd); 178 NLA_PUT(skb, WL1271_TM_ATTR_DATA, sizeof(*cmd), cmd);
179 ret = cfg80211_testmode_reply(skb);
180 if (ret < 0)
181 goto out_free;
179 182
180out_free: 183out_free:
181 kfree(cmd); 184 kfree(cmd);