From 8140ae969b2c67f3a119a7a33a503012510f1170 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 10 Feb 2013 16:20:25 +0200 Subject: [PATCH] WPS: Configure logging to show nfcpy log message Signed-hostap: Jouni Malinen --- hostapd/wps-ap-nfc.py | 3 +++ wpa_supplicant/examples/wps-nfc.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hostapd/wps-ap-nfc.py b/hostapd/wps-ap-nfc.py index 92e9aab75..4b2ca0237 100755 --- a/hostapd/wps-ap-nfc.py +++ b/hostapd/wps-ap-nfc.py @@ -15,6 +15,9 @@ import nfc.ndef import nfc.llcp import nfc.handover +import logging +logging.basicConfig() + import wpactrl wpas_ctrl = '/var/run/hostapd' diff --git a/wpa_supplicant/examples/wps-nfc.py b/wpa_supplicant/examples/wps-nfc.py index 0cfc1f684..aa386c2c6 100755 --- a/wpa_supplicant/examples/wps-nfc.py +++ b/wpa_supplicant/examples/wps-nfc.py @@ -1,7 +1,7 @@ #!/usr/bin/python # # Example nfcpy to wpa_supplicant wrapper for WPS NFC operations -# Copyright (c) 2012, Jouni Malinen +# Copyright (c) 2012-2013, Jouni Malinen # # This software may be distributed under the terms of the BSD license. # See README for more details. @@ -15,6 +15,9 @@ import nfc.ndef import nfc.llcp import nfc.handover +import logging +logging.basicConfig() + import wpactrl wpas_ctrl = '/var/run/wpa_supplicant'