EAP server: Allow reauth to be started with passthrough
[libeap.git] / wpa_supplicant / bgscan.h
index dfd4cab..9f2ba2f 100644 (file)
@@ -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
@@ -25,18 +25,21 @@ struct bgscan_ops {
                       const struct wpa_ssid *ssid);
        void (*deinit)(void *priv);
 
-       int (*notify_scan)(void *priv);
+       int (*notify_scan)(void *priv, struct wpa_scan_results *scan_res);
        void (*notify_beacon_loss)(void *priv);
-       void (*notify_signal_change)(void *priv);
+       void (*notify_signal_change)(void *priv, int above,
+                                    int current_signal);
 };
 
 #ifdef CONFIG_BGSCAN
 
 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);
+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);
+void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s, int above,
+                                int current_signal);
 
 #else /* CONFIG_BGSCAN */
 
@@ -50,7 +53,8 @@ static inline void bgscan_deinit(struct wpa_supplicant *wpa_s)
 {
 }
 
-static inline int bgscan_notify_scan(struct wpa_supplicant *wpa_s)
+static inline int bgscan_notify_scan(struct wpa_supplicant *wpa_s,
+                                    struct wpa_scan_results *scan_res)
 {
        return 0;
 }
@@ -59,7 +63,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, int current_signal)
 {
 }