aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bgscan_simple.c
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_simple.c
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_simple.c')
-rw-r--r--wpa_supplicant/bgscan_simple.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/wpa_supplicant/bgscan_simple.c b/wpa_supplicant/bgscan_simple.c
index 6325d73..409d9ce 100644
--- a/wpa_supplicant/bgscan_simple.c
+++ b/wpa_supplicant/bgscan_simple.c
@@ -177,7 +177,9 @@ static void bgscan_simple_notify_beacon_loss(void *priv)
static void bgscan_simple_notify_signal_change(void *priv, int above,
- int current_signal)
+ int current_signal,
+ int current_noise,
+ int current_txrate)
{
struct bgscan_simple_data *data = priv;
int scan = 0;
@@ -188,7 +190,9 @@ static void bgscan_simple_notify_signal_change(void *priv, int above,
return;
wpa_printf(MSG_DEBUG, "bgscan simple: signal level changed "
- "(above=%d current_signal=%d)", above, current_signal);
+ "(above=%d current_signal=%d current_noise=%d "
+ "current_txrate=%d))", above, current_signal,
+ current_noise, current_txrate);
if (data->scan_interval == data->long_interval && !above) {
wpa_printf(MSG_DEBUG, "bgscan simple: Start using short "
"bgscan interval");