aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_wext.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2011-11-25 19:08:52 (GMT)
committerJouni Malinen <j@w1.fi>2011-11-29 13:18:21 (GMT)
commit06e356fe14eb639ed41371dbe6a867bf89dcbed1 (patch)
treedb05a1afd9138a75b336ff65384089afde1f4133 /src/drivers/driver_wext.c
parentd70b945d4d8d57c2b2666bff3a931069772e58e0 (diff)
downloadhostap-06e356fe14eb639ed41371dbe6a867bf89dcbed1.zip
hostap-06e356fe14eb639ed41371dbe6a867bf89dcbed1.tar.gz
hostap-06e356fe14eb639ed41371dbe6a867bf89dcbed1.tar.bz2
Android: wext: Add driver state events
Diffstat (limited to 'src/drivers/driver_wext.c')
-rw-r--r--src/drivers/driver_wext.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c
index 9097685..a4152b4 100644
--- a/src/drivers/driver_wext.c
+++ b/src/drivers/driver_wext.c
@@ -37,6 +37,9 @@
#include "driver.h"
#include "driver_wext.h"
+#ifdef ANDROID
+#include "android_drv.h"
+#endif /* ANDROID */
static int wpa_driver_wext_flush_pmkid(void *priv);
static int wpa_driver_wext_get_range(void *priv);
@@ -302,6 +305,14 @@ wpa_driver_wext_event_wireless_custom(void *ctx, char *custom)
}
wpa_supplicant_event(ctx, EVENT_STKSTART, &data);
#endif /* CONFIG_PEERKEY */
+#ifdef ANDROID
+ } else if (os_strncmp(custom, "STOP", 4) == 0) {
+ wpa_msg(ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "STOPPED");
+ } else if (os_strncmp(custom, "START", 5) == 0) {
+ wpa_msg(ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "STARTED");
+ } else if (os_strncmp(custom, "HANG", 4) == 0) {
+ wpa_msg(ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "HANGED");
+#endif /* ANDROID */
}
}