From 8f9163cca03714ea6ba5afbf91a5995debd21265 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 11 Mar 2005 23:20:27 +0000 Subject: Make sure we associate an interface with the m_pkthdr in ieee80211_beacon_alloc. ok damien@ reyk@ --- sys/net80211/ieee80211_output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index 4a55a34d8b1..8818c0db755 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_output.c,v 1.7 2005/03/03 14:36:41 damien Exp $ */ +/* $OpenBSD: ieee80211_output.c,v 1.8 2005/03/11 23:20:26 jsg Exp $ */ /* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */ /*- @@ -889,6 +889,7 @@ ieee80211_beacon_alloc(struct ieee80211com *ic, struct ieee80211_node *ni) } frm = ieee80211_add_xrates(frm, rs); m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *); + m->m_pkthdr.rcvif = (void *)ni; IASSERT(m->m_pkthdr.len <= pktlen, ("beacon bigger than expected, len %u calculated %u", m->m_pkthdr.len, pktlen)); -- cgit v1.2.3