aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/ap_list.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2007-12-25 05:43:48 (GMT)
committerJouni Malinen <j@w1.fi>2007-12-25 05:43:48 (GMT)
commit057661470c1461e897b86b74232e4a709b383e21 (patch)
tree226a365b1128a433308b5797419d7c829b299060 /hostapd/ap_list.c
parent7d00b7a96928ee5aa695b84a44cfb57298e8a637 (diff)
downloadhostap-history-057661470c1461e897b86b74232e4a709b383e21.zip
hostap-history-057661470c1461e897b86b74232e4a709b383e21.tar.gz
hostap-history-057661470c1461e897b86b74232e4a709b383e21.tar.bz2
Replaced HOSTAPD_DEBUG() macro with wpa_printf() to get rid of the old
debug macros in hostapd. All new code should use functions from src/utils/wpa_debug.[ch] instead. As a bonus, this also changes some of the direct printf() calls to use wpa_printf().
Diffstat (limited to 'hostapd/ap_list.c')
-rw-r--r--hostapd/ap_list.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/hostapd/ap_list.c b/hostapd/ap_list.c
index b249469..5f5b5d4 100644
--- a/hostapd/ap_list.c
+++ b/hostapd/ap_list.c
@@ -360,9 +360,8 @@ void ap_list_process_beacon(struct hostapd_iface *iface,
ap_list_beacon_olbc(iface, ap)) {
struct hostapd_data *hapd = iface->bss[0];
iface->olbc = 1;
- HOSTAPD_DEBUG(HOSTAPD_DEBUG_MINIMAL,
- "OLBC AP detected: " MACSTR " - enable "
- "protection\n", MAC2STR(ap->addr));
+ wpa_printf(MSG_DEBUG, "OLBC AP detected: " MACSTR " - enable "
+ "protection", MAC2STR(ap->addr));
ieee802_11_set_beacons(hapd->iface);
}
}
@@ -408,8 +407,7 @@ static void ap_list_timer(void *eloop_ctx, void *timeout_ctx)
}
if (!olbc) {
struct hostapd_data *hapd = iface->bss[0];
- HOSTAPD_DEBUG(HOSTAPD_DEBUG_MINIMAL,
- "OLBC not detected anymore\n");
+ wpa_printf(MSG_DEBUG, "OLBC not detected anymore");
iface->olbc = 0;
ieee802_11_set_beacons(hapd->iface);
}