aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bgscan.h
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.h
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.h')
-rw-r--r--wpa_supplicant/bgscan.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/wpa_supplicant/bgscan.h b/wpa_supplicant/bgscan.h
index dfd4cab..69e99b6 100644
--- a/wpa_supplicant/bgscan.h
+++ b/wpa_supplicant/bgscan.h
@@ -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
@@ -27,7 +27,7 @@ struct bgscan_ops {
int (*notify_scan)(void *priv);
void (*notify_beacon_loss)(void *priv);
- void (*notify_signal_change)(void *priv);
+ void (*notify_signal_change)(void *priv, int above);
};
#ifdef CONFIG_BGSCAN
@@ -36,7 +36,7 @@ int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
void bgscan_deinit(struct wpa_supplicant *wpa_s);
int bgscan_notify_scan(struct wpa_supplicant *wpa_s);
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);
#else /* CONFIG_BGSCAN */
@@ -59,7 +59,8 @@ static inline void bgscan_notify_beacon_loss(struct wpa_supplicant *wpa_s)
{
}
-static inline void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s)
+static inline void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s,
+ int above)
{
}