aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorPaul Stewart <pstew@google.com>2011-03-31 14:56:48 (GMT)
committerJouni Malinen <j@w1.fi>2011-03-31 14:56:48 (GMT)
commit1c5c7273f55d7ce867bd29558dcd0ebef9264ea1 (patch)
treeb85b7dea3f5ff4e5e65fa3fc28180f99cf7ff4a4 /wpa_supplicant/driver_i.h
parent14dc00115eb7bd30b8f89da3104d00eee9ce8434 (diff)
downloadhostap-1c5c7273f55d7ce867bd29558dcd0ebef9264ea1.zip
hostap-1c5c7273f55d7ce867bd29558dcd0ebef9264ea1.tar.gz
hostap-1c5c7273f55d7ce867bd29558dcd0ebef9264ea1.tar.bz2
driver: Function to directly poll signal quality
This provides a means for the supplicant to directly request signal quality metrics from the driver. This is useful, for example for background scan algorithms that might ask desire this information out-of-band with CQM events. Signed-off-by: Paul Stewart <pstew@google.com>
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 2f57af4..693491b 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -504,6 +504,14 @@ static inline int wpa_drv_signal_monitor(struct wpa_supplicant *wpa_s,
return -1;
}
+static inline int wpa_drv_signal_poll(struct wpa_supplicant *wpa_s,
+ struct wpa_signal_info *si)
+{
+ if (wpa_s->driver->signal_poll)
+ return wpa_s->driver->signal_poll(wpa_s->drv_priv, si);
+ return -1;
+}
+
static inline int wpa_drv_set_ap_wps_ie(struct wpa_supplicant *wpa_s,
const struct wpabuf *beacon,
const struct wpabuf *proberesp,