aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bgscan_learn.c
Commit message (Collapse)AuthorAgeFilesLines
* bgscan: Use monotonic timeJohannes Berg2013-12-241-6/+6
| | | | | | | The bgscan simple and learn algorithms should run regardless of wall clock time jumps, so make them use monotonic time. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
* bgscan_learn: Start scanning from the first freqEliad Peller2013-12-241-9/+8
| | | | | | | | bgscan_learn_get_probe_freq() starts from returning the second entry in the supp_freqs arrays. Change its logic a bit to make it start from the first entry. Signed-hostap: Eliad Peller <eliad@wizery.com>
* bgscan_learn: Fix initial intervalEyal Shapira2013-12-241-0/+8
| | | | | | | | | | | In case the initial signal level of the associated BSS was above the given threshold, bgscan_learn module would begin using the short_interval but never switch to the long_interval as there would be no signal change event. Make the init code poll for the current signal level and set scan_interval accordingly. This logic exists in bgscan_simple but was missing in bgscan_learn. Signed-hostap: Eyal Shapira <eyal@wizery.com>
* bgscan_learn: Avoid redundant frequenciesEliad Peller2013-12-241-0/+3
| | | | | | | | | Some hw modes (e.g., 11b and 11g) contain the same frequencies, causing the supp_freqs array to be populated with redundant entries. Check for the existence of the freq before adding it. Signed-hostap: Eliad Peller <eliad@wizery.com>
* bgscan_learn: Prevent infinite busy loopingPawel Kulakowski2012-11-111-1/+4
| | | | | | | | | | | | In highly congested network (BSSes almost on every channel within ESS) we have hit a bug when wpa_supplicant become completly irresponsive, infinite looping on while loop. When probe_idx was equal 0 and we are not able to probe new frequency, following condition were never fulfilled: "if (!in_array(freqs, data->supp_freqs[idx]))" Signed-hostap: Pawel Kulakowski <pawel.kulakowski@tieto.com>
* Convert os_realloc() for an array to use os_realloc_array()Jouni Malinen2012-08-131-4/+4
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* wpa_supplicant: Unify hardware feature dataChristian Lamparter2011-10-231-8/+4
| | | | | | | | | The hardware feature data is required in several different places throughout the code. Previously, the data was acquired and freed on demand, but with this patch wpa_supplicant will keep a single copy around at runtime for everyone to use. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
* bgscan: Add new channel condition parameters to signal change eventsPaul Stewart2010-10-121-2/+6
| | | | | bgscan modules can potentially get a richer feel for the channel condition and make better choices about scan/no-scan and roam/no-roam.
* bgscan learn: Fix buildJouni Malinen2010-09-091-0/+1
| | | | | | Commit 9ff80a10e8009c0dc65a4b7e08dcf1655cd2a483 forgot to include the new scan variable in the coded copied from bgscan_simple.c. Add that here to fix the build.
* bgscan learn: Skip immediate scan on initial signal eventJouni Malinen2010-08-271-14/+23
| | | | | | | The driver is likely to indicate an immediate signal event when the threshold value is configured. Since we do this immediately after association, there is not much point in requesting a new scan to be started based on this event.
* Add current signal strength into signal quality change eventsJouni Malinen2010-08-271-2/+3
|
* bgscan learn: Remove forgotten debug printfJouni Malinen2010-07-111-1/+0
|
* bgscan learn: Mark BSSes that show up in the same scan as neighborsJouni Malinen2010-07-111-4/+96
|
* bgscan learn: Probe one new channel at a time to find APsJouni Malinen2010-07-111-5/+87
| | | | | This allows APs to be found from channels that have not previously been observed to contain APs for this ESS.
* bgscan learn: Learn BSS information based on previous scansJouni Malinen2010-07-111-7/+151
| | | | | | Store list of all discovered BSSes in the ESS and on which frequencies they have been seen. Use this information to dynamically generated the list of channels for background scans.
* bgscan learn: Add data file for storing learned network informationJouni Malinen2010-07-101-0/+62
|
* bgscan: Add starting point for more advanced bgscan module: learnJouni Malinen2010-07-101-0/+220
This is based on the bgscan "simple" module and this initial commit does not add any new functionality.