SKB handling code cleanup:
[madwifi/.git] / net80211 / ieee80211_monitor.c
index 84023c940281ce205d127ad1e137a9dac28c16e5..04457ed73843dd38ff748aa83ca44e22fe7c9c0b 100644 (file)
@@ -578,8 +578,8 @@ ieee80211_input_monitor(struct ieee80211com *ic, struct sk_buff *skb,
                                /* If netif_rx dropped the packet because 
                                 * device was too busy, reclaim the ref. in 
                                 * the skb. */
-                               if (SKB_CB(skb1)->ni != NULL)
-                                       ieee80211_unref_node(&SKB_CB(skb1)->ni);
+                               if (SKB_NI(skb1) != NULL)
+                                       ieee80211_unref_node(&SKB_NI(skb1));
                                vap->iv_devstats.rx_dropped++;
                        }