wl12xx: send testmode reply in wl1271_tm_cmd_interrogate
authorEliad Peller <eliad@wizery.com>
Tue, 6 Dec 2011 10:15:07 +0000 (12:15 +0200)
committerLuciano Coelho <coelho@ti.com>
Thu, 8 Dec 2011 10:32:36 +0000 (12:32 +0200)
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>
drivers/net/wireless/wl12xx/testmode.c

index 2f9ebff..978cf2d 100644 (file)
@@ -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);