From 9645162245b951546f5b3f12c1211bd375b707d4 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Fri, 24 Oct 2014 11:48:29 +0200 Subject: [PATCH] meta-digi-dey: wpa-supplicant: reduce verbosity Do not log scan started events not to clutter the UI. https://jira.digi.com/browse/DEL-1024 Signed-off-by: Alex Gonzalez --- ...ents-Reduce-verbosity-of-scan-events.patch | 37 +++++++++++++++++++ .../wpa-supplicant_2.1.bbappend | 5 ++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 meta-digi-dey/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-events-Reduce-verbosity-of-scan-events.patch diff --git a/meta-digi-dey/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-events-Reduce-verbosity-of-scan-events.patch b/meta-digi-dey/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-events-Reduce-verbosity-of-scan-events.patch new file mode 100644 index 000000000..b04224395 --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-events-Reduce-verbosity-of-scan-events.patch @@ -0,0 +1,37 @@ +From: Alex Gonzalez +Date: Wed, 8 Oct 2014 15:50:34 +0200 +Subject: [PATCH] events: Reduce verbosity of scan events. + +Use wpa_msg_ctrl instead of wpa_msg to avoid cluttering the UI with log +messages. + +https://jira.digi.com/browse/DEL-1024 + +Signed-off-by: Alex Gonzalez +--- + wpa_supplicant/events.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c +index a72f2fae7e1a..2ed2ab9254be 100644 +--- a/wpa_supplicant/events.c ++++ b/wpa_supplicant/events.c +@@ -2892,15 +2892,15 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, + wpa_s->own_scan_running = 1; + if (wpa_s->last_scan_req == MANUAL_SCAN_REQ && + wpa_s->manual_scan_use_id) { +- wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_SCAN_STARTED "id=%u", ++ wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_SCAN_STARTED "id=%u", + wpa_s->manual_scan_id); + } else { +- wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_SCAN_STARTED); ++ wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_SCAN_STARTED); + } + } else { + wpa_dbg(wpa_s, MSG_DEBUG, "External program started a scan"); + wpa_s->external_scan_running = 1; +- wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_SCAN_STARTED); ++ wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_SCAN_STARTED); + } + break; + case EVENT_SCAN_RESULTS: diff --git a/meta-digi-dey/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.1.bbappend b/meta-digi-dey/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.1.bbappend index 77c6cc4bd..73028eb40 100644 --- a/meta-digi-dey/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.1.bbappend +++ b/meta-digi-dey/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.1.bbappend @@ -2,7 +2,10 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI += "file://defconfig" +SRC_URI += " \ + file://defconfig \ + file://0001-events-Reduce-verbosity-of-scan-events.patch \ +" do_configure () { install -m 0755 ${WORKDIR}/defconfig wpa_supplicant/.config