wl12xx: free ap keys only in ap mode
authorEliad Peller <eliad@wizery.com>
Mon, 19 Mar 2012 09:32:55 +0000 (11:32 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 10 Apr 2012 09:23:15 +0000 (12:23 +0300)
commit830be7e021efd3a801ed0113e6a2244020679a13
treef1ba579f9a25c65ad23ac32c676d3840fd5f966e
parent690142e9882679fac4993bbb01582dd1b9440605
wl12xx: free ap keys only in ap mode

The ap keys should be freed only when removing
ap role (otherwise, some arbitrary data might
get freed).

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