More use of macros to access cb, per kernel conventions
authormtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 21 Nov 2007 11:13:54 +0000 (11:13 +0000)
committermtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 21 Nov 2007 11:13:54 +0000 (11:13 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2890 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_monitor.c

index 72e3d28bdeaae9ad9a9426ced453b25746f76791..e20871c82c8067c92d3c2ae85e2f2b91a9ce3642 100644 (file)
@@ -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 */