wl12xx: fix testmode test/interrogate commands
commitabc47470ef63cdde2efdf358ae373afb16f358c0
authorEliad Peller <eliad@wizery.com>
Tue, 6 Dec 2011 10:15:05 +0000 (6 12:15 +0200)
committerLuciano Coelho <coelho@ti.com>
Thu, 8 Dec 2011 10:32:36 +0000 (8 12:32 +0200)
tree4cfc94c6df38625e39414e917a3c5942670001db
parente0d62536d032db689adf9c8162a9d2caf4714f44
wl12xx: fix testmode test/interrogate commands

fix several issues in testmode test/interrogate commands:
1. check the driver state is not OFF.
2. wakeup the chip from elp (if needed)
3. fix memory leak in wl1271_tm_cmd_interrogate()

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/testmode.c