summaryrefslogtreecommitdiffstats
path: root/sys/dev/ral
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-06-02 23:14:40 +0000
committersam <sam@FreeBSD.org>2006-06-02 23:14:40 +0000
commitc35d17efe0d0b7b4ab064b041e890a7e341ab5ed (patch)
tree24469a0066d7f45b8c379dc7901a2dbfe0aab18d /sys/dev/ral
parentf018362c4adf765452a6cca57e43fb6f2f58b2ba (diff)
downloadFreeBSD-src-c35d17efe0d0b7b4ab064b041e890a7e341ab5ed.zip
FreeBSD-src-c35d17efe0d0b7b4ab064b041e890a7e341ab5ed.tar.gz
add missed calls to bpf_peers_present
Diffstat (limited to 'sys/dev/ral')
-rw-r--r--sys/dev/ral/rt2661.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ral/rt2661.c b/sys/dev/ral/rt2661.c
index d40e906..408a6f2 100644
--- a/sys/dev/ral/rt2661.c
+++ b/sys/dev/ral/rt2661.c
@@ -1782,7 +1782,7 @@ rt2661_start(struct ifnet *ifp)
ni = (struct ieee80211_node *)m0->m_pkthdr.rcvif;
m0->m_pkthdr.rcvif = NULL;
- if (ic->ic_rawbpf != NULL)
+ if (bpf_peers_present(ic->ic_rawbpf))
bpf_mtap(ic->ic_rawbpf, m0);
if (rt2661_tx_mgt(sc, m0, ni) != 0)
@@ -1836,7 +1836,7 @@ rt2661_start(struct ifnet *ifp)
continue;
}
- if (ic->ic_rawbpf != NULL)
+ if (bpf_peers_present(ic->ic_rawbpf))
bpf_mtap(ic->ic_rawbpf, m0);
if (rt2661_tx_data(sc, m0, ni, ac) != 0) {
OpenPOWER on IntegriCloud