Alexander Aring 5f2ebb3b59 mac802154: check on len instead mac_len
This patch change the length check to len instead of mac_len for
checking if the frame control field is available to dereference.
We need to change it because I saw issues with af_packet raw sockets
and the mrf24j40 which calls this functionality. The raw socket
functionality doesn't set the mac_len but resets the skb_mac_header to
skb->data which is still correct. The issue occur at mrf24j40 only,
because the driver need to evaluate the fc fields.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2015-09-30 13:22:11 +02:00
..
2015-09-01 15:52:35 +02:00
2015-09-05 18:21:14 -07:00
2015-09-09 08:33:31 -07:00
2015-09-02 12:22:54 -07:00
2015-09-08 17:22:35 -07:00
2015-09-17 21:09:07 -07:00
2015-09-08 14:35:59 -07:00