aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bgscan.h
diff options
context:
space:
mode:
authorPaul Stewart <pstew@google.com>2010-10-12 17:03:36 (GMT)
committerJouni Malinen <j@w1.fi>2010-10-12 17:03:36 (GMT)
commit174fa7898e008a9e76757b8afda16707c4c7ec15 (patch)
tree8f26a05ff54f77945ee106aff54c608db15b7f48 /wpa_supplicant/bgscan.h
parent7ee35bf395878d7c7571518b195c23c0c96b4d56 (diff)
downloadhostap-174fa7898e008a9e76757b8afda16707c4c7ec15.zip
hostap-174fa7898e008a9e76757b8afda16707c4c7ec15.tar.gz
hostap-174fa7898e008a9e76757b8afda16707c4c7ec15.tar.bz2
bgscan: Add new channel condition parameters to signal change events
bgscan modules can potentially get a richer feel for the channel condition and make better choices about scan/no-scan and roam/no-roam.
Diffstat (limited to 'wpa_supplicant/bgscan.h')
-rw-r--r--wpa_supplicant/bgscan.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/wpa_supplicant/bgscan.h b/wpa_supplicant/bgscan.h
index 9f2ba2f..ae94a48 100644
--- a/wpa_supplicant/bgscan.h
+++ b/wpa_supplicant/bgscan.h
@@ -28,7 +28,9 @@ struct bgscan_ops {
int (*notify_scan)(void *priv, struct wpa_scan_results *scan_res);
void (*notify_beacon_loss)(void *priv);
void (*notify_signal_change)(void *priv, int above,
- int current_signal);
+ int current_signal,
+ int current_noise,
+ int current_txrate);
};
#ifdef CONFIG_BGSCAN
@@ -39,7 +41,8 @@ int bgscan_notify_scan(struct wpa_supplicant *wpa_s,
struct wpa_scan_results *scan_res);
void bgscan_notify_beacon_loss(struct wpa_supplicant *wpa_s);
void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s, int above,
- int current_signal);
+ int current_signal, int current_noise,
+ int current_txrate);
#else /* CONFIG_BGSCAN */
@@ -64,7 +67,9 @@ static inline void bgscan_notify_beacon_loss(struct wpa_supplicant *wpa_s)
}
static inline void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s,
- int above, int current_signal)
+ int above, int current_signal,
+ int current_noise,
+ int current_txrate)
{
}