From 640f86f562abb3ab2c333d76ce9e71513782f82e Mon Sep 17 00:00:00 2001 From: mtaylor Date: Wed, 21 Nov 2007 18:25:00 +0000 Subject: [PATCH] Put the zeroing of the CB back in. It was supposed to move up to the top and not dissapear. In another change I will commit, some of the logic depends upon zeroing earlier before assigning some values to cb git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2900 0192ed92-7a03-0410-a25b-9323aeb14dbd --- net80211/ieee80211_output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net80211/ieee80211_output.c b/net80211/ieee80211_output.c index a4c3bda..8d88a0b 100644 --- a/net80211/ieee80211_output.c +++ b/net80211/ieee80211_output.c @@ -206,6 +206,8 @@ ieee80211_hardstart(struct sk_buff *skb, struct net_device *dev) struct ieee80211_node *ni = NULL; struct ether_header *eh; + memset(SKB_CB(skb), 0, sizeof(struct ieee80211_cb)); + /* NB: parent must be up and running */ if ((parent->flags & (IFF_RUNNING|IFF_UP)) != (IFF_RUNNING|IFF_UP)) goto bad; @@ -221,6 +223,7 @@ ieee80211_hardstart(struct sk_buff *skb, struct net_device *dev) #endif goto bad; } + if (vap->iv_opmode == IEEE80211_M_MONITOR) { ieee80211_monitor_encap(vap, skb); ieee80211_parent_queue_xmit(skb);