From: mtaylor Date: Wed, 21 Nov 2007 11:13:54 +0000 (+0000) Subject: More use of macros to access cb, per kernel conventions X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=831cbc8da086f0fec0be770ee5519c7dc58fbfc4;p=madwifi%2F.git More use of macros to access cb, per kernel conventions git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2890 0192ed92-7a03-0410-a25b-9323aeb14dbd --- diff --git a/net80211/ieee80211_monitor.c b/net80211/ieee80211_monitor.c index 72e3d28..e20871c 100644 --- a/net80211/ieee80211_monitor.c +++ b/net80211/ieee80211_monitor.c @@ -128,12 +128,11 @@ struct ar5212_openbsd_desc { void ieee80211_monitor_encap(struct ieee80211vap *vap, struct sk_buff *skb) { - struct ieee80211_cb *cb = (struct ieee80211_cb *) skb->cb; struct ieee80211_phy_params *ph = - (struct ieee80211_phy_params *) (skb->cb + sizeof(struct ieee80211_cb)); - cb->flags = M_RAW; - cb->ni = NULL; - cb->next = NULL; + (struct ieee80211_phy_params *) (SKB_CB(skb) + sizeof(struct ieee80211_cb)); + SKB_CB(skb)->flags = M_RAW; + SKB_CB(skb)->ni = NULL; + SKB_CB(skb)->next = NULL; memset(ph, 0, sizeof(struct ieee80211_phy_params)); /* send at a static rate if it is configured */