#define __offsetof(t,m) offsetof(t,m)
-#ifndef ALIGNED_POINTER
-/*
- * ALIGNED_POINTER is a boolean macro that checks whether an address
- * is valid to fetch data elements of type t from on this architecture.
- * This does not reflect the optimal alignment, just the possibility
- * (within reasonable limits).
- *
- */
-#define ALIGNED_POINTER(p,t) 1
-#endif
-
#ifdef __KERNEL__
#define KASSERT(exp, msg) do { \
if (unlikely(!(exp))) { \
else
eh->ether_type = ether_type;
- if (!ALIGNED_POINTER(skb->data + sizeof(*eh), u_int32_t)) {
- struct sk_buff *tskb;
-
- /* XXX: does this always work? */
- tskb = skb_copy(skb, GFP_ATOMIC);
- if (tskb)
- ieee80211_skb_copy_noderef(skb, tskb);
- ieee80211_dev_kfree_skb(&skb);
- skb = tskb;
- }
return skb;
}