bgscan: Add signal strength change events
authorJouni Malinen <j@w1.fi>
Sun, 28 Mar 2010 22:32:34 +0000 (15:32 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 28 Mar 2010 22:32:34 +0000 (15:32 -0700)
commite2f74005f548d90014cdf080802d455382e37cb9
tree51cf945954e7babeafab415d2cf86c66fa2b58f8
parentb625473c6c9ac968bf59932df4582e1fe33466d9
bgscan: Add signal strength change events

This allows bgscan modules to use more information to decide on when
to perform background scans. bgscan_simple can now change between
short and long background scan intervals based on signal strength
and in addition, it can trigger immediate scans when the signal
strength is detected to be dropping.

bgscan_simple takes following parameters now:
short interval:signal strength threshold:long interval
For example:
bgscan="simple:30:-45:300"
wpa_supplicant/bgscan.c
wpa_supplicant/bgscan.h
wpa_supplicant/bgscan_simple.c
wpa_supplicant/events.c