summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_output.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2005-03-11 23:20:27 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2005-03-11 23:20:27 +0000
commit8f9163cca03714ea6ba5afbf91a5995debd21265 (patch)
treebc9e9b717c9cf47db8ce09778cd4fb022896ea0f /sys/net80211/ieee80211_output.c
parent055086c57f1d2f2eae3e4ecfce8c6b2553a4c28e (diff)
Make sure we associate an interface with the m_pkthdr in
ieee80211_beacon_alloc. ok damien@ reyk@
Diffstat (limited to 'sys/net80211/ieee80211_output.c')
-rw-r--r--sys/net80211/ieee80211_output.c3
1 files changed, 2 insertions, 1 deletions
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));