diff options
author | Eliad Peller <eliad@wizery.com> | 2012-03-19 11:32:55 +0200 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-04-10 12:23:15 +0300 |
commit | 830be7e021efd3a801ed0113e6a2244020679a13 (patch) | |
tree | f1ba579f9a25c65ad23ac32c676d3840fd5f966e /drivers/net/wireless/wl12xx/main.c | |
parent | 690142e9882679fac4993bbb01582dd1b9440605 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/wl12xx/main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 7618eb73cb3..e21d21d7de8 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c @@ -2355,10 +2355,10 @@ deinit: for (i = 0; i < CONF_TX_MAX_AC_COUNT; i++) wl12xx_free_rate_policy(wl, &wlvif->ap.ucast_rate_idx[i]); + wl1271_free_ap_keys(wl, wlvif); } wl12xx_tx_reset_wlvif(wl, wlvif); - wl1271_free_ap_keys(wl, wlvif); if (wl->last_wlvif == wlvif) wl->last_wlvif = NULL; list_del(&wlvif->list); |