Kalle Valo <kalle.valo@xxxxxx> writes: > mac80211 complained that in some cases IP payload was not aligned, this > happens if the 802.11 header is not aligned with four. In that case we have > to move entire packet to make the payload properly aligned. [...] > + if (ieee80211_hdrlen(*fc) & 0x3) { > + from = skb->data; > + to = skb_push(skb, 2); > + memmove(to, from, skb->len); > + fc = (u16 *) skb->data; > + } I would like to get comments about this. Is memmove() the right way to do this? -- Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html