aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-28 22:31:04 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-28 22:31:04 (GMT)
commitb625473c6c9ac968bf59932df4582e1fe33466d9 (patch)
treee5b81fbf27fa40d98c4f88d879e78f3d4f1d670e /wpa_supplicant/driver_i.h
parent93910401c976f53ade1c29895ca66b2ca9f9b6af (diff)
downloadhostap-b625473c6c9ac968bf59932df4582e1fe33466d9.zip
hostap-b625473c6c9ac968bf59932df4582e1fe33466d9.tar.gz
hostap-b625473c6c9ac968bf59932df4582e1fe33466d9.tar.bz2
Add driver command and event for signal strength monitoring
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 8b312a4..71240c3 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -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 */