aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bgscan.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-28 22:32:34 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-28 22:32:34 (GMT)
commite2f74005f548d90014cdf080802d455382e37cb9 (patch)
tree51cf945954e7babeafab415d2cf86c66fa2b58f8 /wpa_supplicant/bgscan.c
parentb625473c6c9ac968bf59932df4582e1fe33466d9 (diff)
downloadhostap-e2f74005f548d90014cdf080802d455382e37cb9.zip
hostap-e2f74005f548d90014cdf080802d455382e37cb9.tar.gz
hostap-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.c6
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);
}