Add driver command and event for signal strength monitoring
[mech_eap.git] / wpa_supplicant / driver_i.h
index 8b312a4..71240c3 100644 (file)
@@ -466,4 +466,13 @@ static inline void wpa_drv_resume(struct wpa_supplicant *wpa_s)
                wpa_s->driver->resume(wpa_s->drv_priv);
 }
 
+static inline int wpa_drv_signal_monitor(struct wpa_supplicant *wpa_s,
+                                        int threshold, int hysteresis)
+{
+       if (wpa_s->driver->signal_monitor)
+               return wpa_s->driver->signal_monitor(wpa_s->drv_priv,
+                                                    threshold, hysteresis);
+       return -1;
+}
+
 #endif /* DRIVER_I_H */