From b9ad829bfe3e99659b32ddefaa5b95505b97c0e0 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 28 Feb 2007 09:09:30 +0000 Subject: Fix a ieee80211_node refcount leak -- the node lookup is done in ieee80211_encap() so there is no need to do call ieee80211_find_txnode() beforehands. OK mglocker@ --- sys/dev/ic/acx.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sys/dev/ic/acx.c') diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c index fb23268a2a5..e7c89303e69 100644 --- a/sys/dev/ic/acx.c +++ b/sys/dev/ic/acx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acx.c,v 1.63 2007/02/23 22:17:05 claudio Exp $ */ +/* $OpenBSD: acx.c,v 1.64 2007/02/28 09:09:29 claudio Exp $ */ /* * Copyright (c) 2006 Jonathan Gray @@ -900,13 +900,6 @@ acx_start(struct ifnet *ifp) } eh = mtod(m, struct ether_header *); - ni = ieee80211_find_txnode(ic, eh->ether_dhost); - if (ni == NULL) { - m_freem(m); - ifp->if_oerrors++; - continue; - } - /* TODO power save */ #if NBPFILTER > 0 -- cgit v1.2.3