diff options
Diffstat (limited to 'sys/dev/ic/rt2860.c')
-rw-r--r-- | sys/dev/ic/rt2860.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/rt2860.c b/sys/dev/ic/rt2860.c index 21ed2f2b1b9..7879145f740 100644 --- a/sys/dev/ic/rt2860.c +++ b/sys/dev/ic/rt2860.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2860.c,v 1.71 2013/12/06 21:03:03 deraadt Exp $ */ +/* $OpenBSD: rt2860.c,v 1.72 2014/03/19 10:09:19 mpi Exp $ */ /*- * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr> @@ -1758,7 +1758,7 @@ rt2860_start(struct ifnet *ifp) /* send pending management frames first */ IF_DEQUEUE(&ic->ic_mgtq, m); if (m != NULL) { - ni = (void *)m->m_pkthdr.rcvif; + ni = m->m_pkthdr.ph_cookie; goto sendit; } if (ic->ic_state != IEEE80211_S_RUN) @@ -1767,7 +1767,7 @@ rt2860_start(struct ifnet *ifp) /* send buffered frames for power-save mode */ IF_DEQUEUE(&ic->ic_pwrsaveq, m); if (m != NULL) { - ni = (void *)m->m_pkthdr.rcvif; + ni = m->m_pkthdr.ph_cookie; goto sendit; } |