diff options
author | Jouni Malinen <j@w1.fi> | 2010-03-28 15:32:34 -0700 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-03-28 15:32:34 -0700 |
commit | e2f74005f548d90014cdf080802d455382e37cb9 (patch) | |
tree | 51cf945954e7babeafab415d2cf86c66fa2b58f8 /wpa_supplicant/bgscan.c | |
parent | b625473c6c9ac968bf59932df4582e1fe33466d9 (diff) | |
download | external_wpa_supplicant_8_ti-e2f74005f548d90014cdf080802d455382e37cb9.zip external_wpa_supplicant_8_ti-e2f74005f548d90014cdf080802d455382e37cb9.tar.gz external_wpa_supplicant_8_ti-e2f74005f548d90014cdf080802d455382e37cb9.tar.bz2 |
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"
Diffstat (limited to 'wpa_supplicant/bgscan.c')
-rw-r--r-- | wpa_supplicant/bgscan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wpa_supplicant/bgscan.c b/wpa_supplicant/bgscan.c index 60dcd0d..31b5d27 100644 --- a/wpa_supplicant/bgscan.c +++ b/wpa_supplicant/bgscan.c @@ -1,6 +1,6 @@ /* * WPA Supplicant - background scan and roaming interface - * Copyright (c) 2009, Jouni Malinen <j@w1.fi> + * Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -103,8 +103,8 @@ void bgscan_notify_beacon_loss(struct wpa_supplicant *wpa_s) } -void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s) +void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s, int above) { if (wpa_s->bgscan && wpa_s->bgscan_priv) - wpa_s->bgscan->notify_signal_change(wpa_s->bgscan_priv); + wpa_s->bgscan->notify_signal_change(wpa_s->bgscan_priv, above); } |