]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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 2f9ebff2ded3ae007ddf37dd3ff7636350849544..978cf2de713dce858d45cfef119eace285a0c37e 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);