summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/scan.c
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-05-10 14:46:02 +0300
committerLuciano Coelho <coelho@ti.com>2011-05-13 00:06:33 +0300
commit33c2c06cd2d766387cf919d0afd432cc5796c369 (patch)
tree6a3dd1f574fba9841bb9feeb3067b6fab5b819bb /drivers/net/wireless/wl12xx/scan.c
parent95feadca6dca909ae0f6e65665b782c7ca9d5122 (diff)
downloadblackbird-op-linux-33c2c06cd2d766387cf919d0afd432cc5796c369.tar.gz
blackbird-op-linux-33c2c06cd2d766387cf919d0afd432cc5796c369.zip
wl12xx: implement scheduled scan driver operations and reporting
This patch adds the mac80211 operations for scheduled scan and the scheduled scan results reporting. Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/scan.c')
-rw-r--r--drivers/net/wireless/wl12xx/scan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/scan.c b/drivers/net/wireless/wl12xx/scan.c
index d78044f00810..668ff46a6824 100644
--- a/drivers/net/wireless/wl12xx/scan.c
+++ b/drivers/net/wireless/wl12xx/scan.c
@@ -548,8 +548,12 @@ void wl1271_scan_sched_scan_stop(struct wl1271 *wl)
ret = wl1271_cmd_send(wl, CMD_STOP_PERIODIC_SCAN, stop,
sizeof(*stop), 0);
- if (ret < 0)
+ if (ret < 0) {
wl1271_error("failed to send sched scan stop command");
+ goto out_free;
+ }
+ wl->sched_scanning = false;
+out_free:
kfree(stop);
}
OpenPOWER on IntegriCloud