diff options
author | Ben Greear <greearb@candelatech.com> | 2011-12-10 16:28:14 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-12-10 16:28:14 +0200 |
commit | e04a1631801d1f9e392891fbca9c04c45ff2dc0d (patch) | |
tree | a6744d0301b8a31d5420e8441e8e0bd8131ca280 /src/ap | |
parent | af22a9994b4630997517c39d343caa783ab0b3ea (diff) | |
download | external_wpa_supplicant_8_ti-e04a1631801d1f9e392891fbca9c04c45ff2dc0d.zip external_wpa_supplicant_8_ti-e04a1631801d1f9e392891fbca9c04c45ff2dc0d.tar.gz external_wpa_supplicant_8_ti-e04a1631801d1f9e392891fbca9c04c45ff2dc0d.tar.bz2 |
AP: Convert some wpa_printf to wpa_msg/dbg
This generates better log messages when running multiple
interfaces in one process.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Diffstat (limited to 'src/ap')
-rw-r--r-- | src/ap/hostapd.c | 7 | ||||
-rw-r--r-- | src/ap/ieee802_1x.c | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 67384d0..0c5ee2e 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -347,12 +347,13 @@ static int hostapd_flush_old_stations(struct hostapd_data *hapd) if (hostapd_drv_none(hapd) || hapd->drv_priv == NULL) return 0; - wpa_printf(MSG_DEBUG, "Flushing old station entries"); + wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "Flushing old station entries"); if (hostapd_flush(hapd)) { - wpa_printf(MSG_WARNING, "Could not connect to kernel driver."); + wpa_msg(hapd->msg_ctx, MSG_WARNING, "Could not connect to " + "kernel driver"); ret = -1; } - wpa_printf(MSG_DEBUG, "Deauthenticate all stations"); + wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "Deauthenticate all stations"); os_memset(addr, 0xff, ETH_ALEN); hostapd_drv_sta_deauth(hapd, addr, WLAN_REASON_PREV_AUTH_NOT_VALID); hostapd_free_stas(hapd); diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c index 18ee747..d2121ab 100644 --- a/src/ap/ieee802_1x.c +++ b/src/ap/ieee802_1x.c @@ -2094,8 +2094,8 @@ static void ieee802_1x_finished(struct hostapd_data *hapd, * EAP-FAST with anonymous provisioning, may require another * EAPOL authentication to be started to complete connection. */ - wpa_printf(MSG_DEBUG, "IEEE 802.1X: Force disconnection after " - "EAP-Failure"); + wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "IEEE 802.1X: Force " + "disconnection after EAP-Failure"); /* Add a small sleep to increase likelihood of previously * requested EAP-Failure TX getting out before this should the * driver reorder operations. |