aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-11-17 19:44:53 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-17 19:45:32 (GMT)
commitde8bb171f64b3115792c1706e18fb4a24903c037 (patch)
tree3e33d11bf032dc72379a19a906a5e20502f62553 /wlantest/wlantest.c
parentd33fef57a4d255e7caa772a61210b9d89a74ea5f (diff)
downloadhostap-de8bb171f64b3115792c1706e18fb4a24903c037.zip
hostap-de8bb171f64b3115792c1706e18fb4a24903c037.tar.gz
hostap-de8bb171f64b3115792c1706e18fb4a24903c037.tar.bz2
wlantest: Add support for debug log timestamps
The new command line argument -t can now be used to request wlantest to include a timestamp in the log entries. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wlantest/wlantest.c')
-rw-r--r--wlantest/wlantest.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/wlantest/wlantest.c b/wlantest/wlantest.c
index 57c8be0..3589d68 100644
--- a/wlantest/wlantest.c
+++ b/wlantest/wlantest.c
@@ -15,6 +15,7 @@
extern int wpa_debug_level;
extern int wpa_debug_show_keys;
+extern int wpa_debug_timestamp;
static void wlantest_terminate(int sig, void *signal_ctx)
@@ -25,7 +26,7 @@ static void wlantest_terminate(int sig, void *signal_ctx)
static void usage(void)
{
- printf("wlantest [-cddhqqF] [-i<ifname>] [-r<pcap file>] "
+ printf("wlantest [-cddhqqFt] [-i<ifname>] [-r<pcap file>] "
"[-p<passphrase>]\n"
" [-I<wired ifname>] [-R<wired pcap file>] "
"[-P<RADIUS shared secret>]\n"
@@ -290,7 +291,7 @@ int main(int argc, char *argv[])
wlantest_init(&wt);
for (;;) {
- c = getopt(argc, argv, "cdf:Fhi:I:L:n:p:P:qr:R:w:W:");
+ c = getopt(argc, argv, "cdf:Fhi:I:L:n:p:P:qr:R:tw:W:");
if (c < 0)
break;
switch (c) {
@@ -338,6 +339,9 @@ int main(int argc, char *argv[])
case 'R':
read_wired_file = optarg;
break;
+ case 't':
+ wpa_debug_timestamp = 1;
+ break;
case 'w':
wt.write_file = optarg;
break;