/* Some versions of firmware stuff packets with 0xff 0x03 (PPP: ALLSTATIONS, UI) bytes, which are required on sent packet, but not always present on received packets  */
static struct sk_buff* ipw_packet_received_skb(unsigned char *data, unsigned int length)
/* Some versions of firmware stuff packets with 0xff 0x03 (PPP: ALLSTATIONS, UI) bytes, which are required on sent packet, but not always present on received packets  */
static struct sk_buff* ipw_packet_received_skb(unsigned char *data, unsigned int length)
{
	struct sk_buff *skb;
	if (length > 2 && data[0] == PPP_ALLSTATIONS && data[1] == PPP_UI) {
		length -= 2;
		data += 2;
	}
	skb = dev_alloc_skb(length + 4);
	skb_reserve(skb, 2);
	memcpy(skb_put(skb, length), data, length);
	return skb;
}