Track whether scan was started by us or an external program
[mech_eap.git] / src / drivers / driver_common.c
index 26ca8d6..8a6b438 100644 (file)
@@ -2,14 +2,8 @@
  * Common driver-related functions
  * Copyright (c) 2003-2011, 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
- * published by the Free Software Foundation.
- *
- * Alternatively, this software may be distributed under the terms of BSD
- * license.
- *
- * See README and COPYING for more details.
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
  */
 
 #include "includes.h"
@@ -83,6 +77,15 @@ const char * event_to_string(enum wpa_event_type event)
        E2S(SCHED_SCAN_STOPPED);
        E2S(DRIVER_CLIENT_POLL_OK);
        E2S(EAPOL_TX_STATUS);
+       E2S(CH_SWITCH);
+       E2S(WNM);
+       E2S(CONNECT_FAILED_REASON);
+       E2S(DFS_RADAR_DETECTED);
+       E2S(DFS_CAC_FINISHED);
+       E2S(DFS_CAC_ABORTED);
+       E2S(DFS_NOP_FINISHED);
+       E2S(SURVEY);
+       E2S(SCAN_STARTED);
        }
 
        return "UNKNOWN";