From 7cc6cc696c12dcee5a294f67527cebb28374c49e Mon Sep 17 00:00:00 2001 From: andre Date: Mon, 19 Aug 2013 13:27:32 +0000 Subject: Add m_clrprotoflags() to clear protocol specific mbuf flags at up and downwards layer crossings. Consistently use it within IP, IPv6 and ethernet protocols. Discussed with: trociny, glebius --- sys/net80211/ieee80211_hostap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/net80211/ieee80211_hostap.c') diff --git a/sys/net80211/ieee80211_hostap.c b/sys/net80211/ieee80211_hostap.c index ee17527..5839e7d 100644 --- a/sys/net80211/ieee80211_hostap.c +++ b/sys/net80211/ieee80211_hostap.c @@ -355,7 +355,8 @@ hostap_deliver_data(struct ieee80211vap *vap, struct ifnet *ifp = vap->iv_ifp; /* clear driver/net80211 flags before passing up */ - m->m_flags &= ~(M_80211_RX | M_MCAST | M_BCAST); + m->m_flags &= ~(M_MCAST | M_BCAST); + m_clrprotoflags(m); KASSERT(vap->iv_opmode == IEEE80211_M_HOSTAP, ("gack, opmode %d", vap->iv_opmode)); -- cgit v1.1