wl12xx: adaptive sched scan dwell times
authorEyal Shapira <eyal@wizery.com>
Mon, 19 Mar 2012 10:06:28 +0000 (12:06 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 10 Apr 2012 09:47:24 +0000 (12:47 +0300)
commit6f407e5bc7af4e125e20e4f9c893f3df8fadb202
tree5180a881af3ad918e9989176b1bf4d8a1cd20aa3
parent3eba4a0e6db9ca225bc0f3042d60fcfc86a30bc8
wl12xx: adaptive sched scan dwell times

Set the dwell times for sched scan according to the number
of probe requests which are going to be transmitted.
This should fix the too short dwell time problem which
prevented some of the probe requests from being transmitted
in cases of high number of SSIDs (10+) to be actively sched scanned.
However, in the common case of having up to 1-2 SSIDs that
require active scan, the dwell time would be kept to a minimum
which should conserve power. This is important as sched scan
also runs periodically while the host is suspended and there's
great importance to keep power consumption as low as possible.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
[fixed a couple of new strict checkpatch warnings]
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/conf.h
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/scan.c