From dff9e381ca063c2209342cb3d1885c6a4ce19af4 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 16 Jan 2013 21:34:26 +0100 Subject: [PATCH] kernel/wlan_acl: Put two more ethstr[] under IEEE80211_DEBUG. --- sys/netproto/802_11/wlan_acl/ieee80211_acl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/netproto/802_11/wlan_acl/ieee80211_acl.c b/sys/netproto/802_11/wlan_acl/ieee80211_acl.c index c9ab8ac920..f2d635206a 100644 --- a/sys/netproto/802_11/wlan_acl/ieee80211_acl.c +++ b/sys/netproto/802_11/wlan_acl/ieee80211_acl.c @@ -168,7 +168,9 @@ acl_add(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN]) { struct aclstate *as = vap->iv_as; struct acl *acl, *new; +#ifdef IEEE80211_DEBUG char ethstr[ETHER_ADDRSTRLEN + 1]; +#endif int hash; new = (struct acl *) kmalloc(sizeof(struct acl), M_80211_ACL, M_INTWAIT | M_ZERO); @@ -204,7 +206,9 @@ acl_remove(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN]) { struct aclstate *as = vap->iv_as; struct acl *acl; +#ifdef IEEE80211_DEBUG char ethstr[ETHER_ADDRSTRLEN + 1]; +#endif acl = _find_acl(as, mac); if (acl != NULL) -- 2.41.0